Interface IRectangle
A rectangle aligned with the axis (i.e. it is not at an angle).
In geospatial contexts, it may cross the international date line (-180 longitude) if CrossesDateLine however it cannot pass the poles although it may span the globe. It spans the globe if the X coordinate (Longitude) goes from -180 to 180 as seen from MinX and MaxX.
Inherited Members
Assembly: Spatial4n.dll
Syntax
public interface IRectangle : IShape
Properties
Name | Description |
---|---|
CrossesDateLine | Only meaningful for geospatial contexts. |
Height | The height. In geospatial contexts, this is in degrees latitude. It will always be >= 0. |
MaxX | The right edge of the X coordinate. |
MaxY | The top edge of the Y coordinate. |
MinX | The left edge of the X coordinate. |
MinY | The bottom edge of the Y coordinate. |
Width | The width. In geospatial contexts, this is generally in degrees longitude and is aware of the international dateline. It will always be >= 0. |
Methods
Name | Description |
---|---|
RelateXRange(Double, Double) | A specialization of Relate(IShape) for a horizontal line. |
RelateYRange(Double, Double) | A specialization of Relate(IShape) for a vertical line. |
Reset(Double, Double, Double, Double) | Expert: Resets the state of this shape given the arguments. This is a performance feature to avoid excessive Shape object allocation as well as some argument error checking. Mutable shapes is error-prone so use with care. |