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