MapRectangle Methods |
The MapRectangle type exposes the following members.
Name | Description | |
---|---|---|
Contains(Point) |
Checks whether the point parameter is within the rectangle, inclusive its edges.
| |
Contains(MapRectangle) |
Checks whether the rect parameter is located completely within the rectangle, inclusive its edges.
| |
Equals(Object) |
Compares this rectangle with the passed in object.
(Overrides ObjectEquals(Object).) | |
Equals(MapRectangle) |
Compares this Rect with the passed in object.
| |
Equals(MapRectangle, MapRectangle) |
Compares two MapRectangle instances for object equality.
| |
GetHashCode |
Returns the HashCode for this object.
(Overrides ObjectGetHashCode.) | |
Inflate(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.
| |
Inflate(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.
| |
InflateHorizontally |
Inflates the object horizontally by specifying a factor. The width of the rectangle is multiplied by this factor.
| |
InflateVertically |
Inflates the object vertically by specifying a factor. The height of the rectangle is multiplied by this factor.
| |
Intersect |
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.
| |
IntersectsWith |
Checks whether the parameter rect intersects with this rectangle.
If one edge is coincident, it is considered an intersection.
| |
Translate |
Translates the rectangle horizontally and vertically, if it is not empty. All boundaries are changed.
| |
TranslateHorizontally | ||
TranslateVertically | ||
Union(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).
| |
Union(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.
|
Name | Description | |
---|---|---|
ToJson | Converts an object to a JSON string representation. (Defined by JSONWriter.) |