C# Class Volante.RectangleR2

R2 rectangle class. This class is used in spatial index.
Afficher le fichier Open project: kjk/volante Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

Area() public méthode

Rectangle area
public Area ( ) : double
Résultat double

Contains() public méthode

Checks if this rectangle contains the specified rectangle
public Contains ( RectangleR2 r ) : bool
r RectangleR2
Résultat bool

EqualsTo() public méthode

public EqualsTo ( RectangleR2 other ) : bool
other RectangleR2
Résultat bool

Intersects() public méthode

Checks if this rectangle intersects with specified rectangle
public Intersects ( RectangleR2 r ) : bool
r RectangleR2
Résultat bool

IsEmpty() public méthode

Check if rectanlge is empty
public IsEmpty ( ) : bool
Résultat bool

Join() public static méthode

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

Join() public méthode

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 ///
Résultat void

JoinArea() public static méthode

Area of covered rectangle for two sepcified rectangles
public static JoinArea ( RectangleR2 a, RectangleR2 b ) : double
a RectangleR2
b RectangleR2
Résultat double

RectangleR2() public méthode

Create copy of the rectangle
public RectangleR2 ( RectangleR2 r ) : System
r RectangleR2
Résultat System

RectangleR2() public méthode

Construct rectangle with specified coordinates
public RectangleR2 ( double top, double left, double bottom, double right ) : System
top double
left double
bottom double
right double
Résultat System