The Rectangle type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
|
|
Rectangle(Circle) |
Constructs a Rectangle that will include the circular area provided. |
|
|
Rectangle(Rectangle) |
Constructs a Rectangle. |
|
|
Rectangle(Position, Position) |
Constructs a Rectangle with top left and bottom right corners supplied as latitude and longitude positions. |
|
|
Rectangle(Double, Double, Double, Double) |
Constructs a Rectangle with top left and bottom right corners supplied as decimal latitude and longitude values. |
Methods
| Name | Description | |
|---|---|---|
|
|
Contains |
Returns true if the position is contained within the rectangle.
|
|
|
SetDouble |
Increases the size of the rectangle by 50% in every dimension.
|
|
|
SetHalf |
Reduces the size of the rectangle by 50% in every dimension.
|
Properties
| Name | Description | |
|---|---|---|
|
|
BottomRight |
Returns the bottom right position of the rectangle.
|
|
|
Center |
Returns the center of the rectangle.
|
|
|
TopLeft |
Returns the top left position of the rectangle.
|