Click or drag to resize

MapRectangle Methods

The MapRectangle type exposes the following members.

Methods
  NameDescription
Public methodContains(Point)
Checks whether the point parameter is within the rectangle, inclusive its edges.
Public methodContains(MapRectangle)
Checks whether the rect parameter is located completely within the rectangle, inclusive its edges.
Public methodEquals(Object)
Compares this rectangle with the passed in object.
(Overrides ObjectEquals(Object).)
Public methodEquals(MapRectangle)
Compares this Rect with the passed in object.
Public methodStatic memberEquals(MapRectangle, MapRectangle)
Compares two MapRectangle instances for object equality.
Public methodGetHashCode
Returns the HashCode for this object.
(Overrides ObjectGetHashCode.)
Public methodInflate(Double)
Inflates the object horizontally and vertically by specifying one single factor, applied to both dimensions. The width and height of the rectangle is multiplied by this factor.
Public methodInflate(Double, Double)
Inflates the object horizontally and vertically by specifying two different factors for each dimension. The width and height of the rectangle is multiplied by these factors.
Public methodInflateHorizontally
Inflates the object horizontally by specifying a factor. The width of the rectangle is multiplied by this factor.
Public methodInflateVertically
Inflates the object vertically by specifying a factor. The height of the rectangle is multiplied by this factor.
Public methodIntersect
Updates this rectangle to be the intersection of this and parameter rect. If either this or rect are empty, the result is empty as well.
Public methodIntersectsWith
Checks whether the parameter rect intersects with this rectangle. If one edge is coincident, it is considered an intersection.
Public methodTranslate
Translates the rectangle horizontally and vertically, if it is not empty. All boundaries are changed.
Public methodTranslateHorizontally
Translates the rectangle horizontally, if it is not empty. The properties West and East are changed.
Public methodTranslateVertically
Translates the rectangle vertically, if it is not empty. The properties South and North are changed.
Public methodUnion(Point)
Updates this rectangle to be the union of this and parameter point. I.e. the rectangle boundaries and the point itself are included in the new boundaries. If point has Double.IsNaN coordinates, the boundaries remain unchanged. If this is empty, the boundaries are adapted to the point's coordinates (width and height will be 0).
Public methodUnion(MapRectangle)
Updates this rectangle to be the union of this and parameter rect. I.e. the rectangle boundaries of this and rect are included in the new boundaries. If rect is empty, the boundaries remain unchanged. If this is empty, the new boundaries are adapted to the rect's boundaries.
Top
Extension Methods
  NameDescription
Public Extension MethodToJson
Converts an object to a JSON string representation.
(Defined by JSONWriter.)
Top
See Also