The Rectangle type exposes the following members.

Constructors

  Name Description
Public method Rectangle(Circle)

Constructs a Rectangle that will include the circular area provided.

Public method Rectangle(Rectangle)

Constructs a Rectangle.

Public method Rectangle(Position, Position)

Constructs a Rectangle with top left and bottom right corners supplied as latitude and longitude positions.

Public method 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
Public method Contains
Returns true if the position is contained within the rectangle.
Public method SetDouble
Increases the size of the rectangle by 50% in every dimension.
Public method SetHalf
Reduces the size of the rectangle by 50% in every dimension.

Properties

  Name Description
Public property BottomRight
Returns the bottom right position of the rectangle.
Public property Center
Returns the center of the rectangle.
Public property TopLeft
Returns the top left position of the rectangle.

See Also