C# 클래스 Volante.RectangleR2

R2 rectangle class. This class is used in spatial index.
파일 보기 프로젝트 열기: kjk/volante 1 사용 예제들

공개 메소드들

메소드 설명
Area ( ) : double

Rectangle area

Contains ( RectangleR2 r ) : bool

Checks if this rectangle contains the specified rectangle

EqualsTo ( RectangleR2 other ) : bool
Intersects ( RectangleR2 r ) : bool

Checks if this rectangle intersects with specified rectangle

IsEmpty ( ) : bool

Check if rectanlge is empty

Join ( RectangleR2 a, RectangleR2 b ) : RectangleR2

Non destructive join of two rectangles.

Join ( RectangleR2 r ) : void

Join two rectangles. This rectangle is updates to contain cover of this and specified rectangle.

JoinArea ( RectangleR2 a, RectangleR2 b ) : double

Area of covered rectangle for two sepcified rectangles

RectangleR2 ( RectangleR2 r ) : System

Create copy of the rectangle

RectangleR2 ( double top, double left, double bottom, double right ) : System

Construct rectangle with specified coordinates

메소드 상세

Area() 공개 메소드

Rectangle area
public Area ( ) : double
리턴 double

Contains() 공개 메소드

Checks if this rectangle contains the specified rectangle
public Contains ( RectangleR2 r ) : bool
r RectangleR2
리턴 bool

EqualsTo() 공개 메소드

public EqualsTo ( RectangleR2 other ) : bool
other RectangleR2
리턴 bool

Intersects() 공개 메소드

Checks if this rectangle intersects with specified rectangle
public Intersects ( RectangleR2 r ) : bool
r RectangleR2
리턴 bool

IsEmpty() 공개 메소드

Check if rectanlge is empty
public IsEmpty ( ) : bool
리턴 bool

Join() 공개 정적인 메소드

Non destructive join of two rectangles.
public static Join ( RectangleR2 a, RectangleR2 b ) : RectangleR2
a RectangleR2 first joined rectangle ///
b RectangleR2 second joined rectangle ///
리턴 RectangleR2

Join() 공개 메소드

Join two rectangles. This rectangle is updates to contain cover of this and specified rectangle.
public Join ( RectangleR2 r ) : void
r RectangleR2 rectangle to be joined with this rectangle ///
리턴 void

JoinArea() 공개 정적인 메소드

Area of covered rectangle for two sepcified rectangles
public static JoinArea ( RectangleR2 a, RectangleR2 b ) : double
a RectangleR2
b RectangleR2
리턴 double

RectangleR2() 공개 메소드

Create copy of the rectangle
public RectangleR2 ( RectangleR2 r ) : System
r RectangleR2
리턴 System

RectangleR2() 공개 메소드

Construct rectangle with specified coordinates
public RectangleR2 ( double top, double left, double bottom, double right ) : System
top double
left double
bottom double
right double
리턴 System