C# Класс Volante.RectangleR2

R2 rectangle class. This class is used in spatial index.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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