Class Rectangle
A simple Rectangle implementation that also supports a longitudinal wrap-around. When minX > maxX, this will assume it is world coordinates that cross the date line using degrees. Immutable & threadsafe.
Inheritance
System.Object
Rectangle
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Spatial4n.dll
Syntax
[Serializable]
public class Rectangle : IRectangle, IShape
Constructors
Name | Description |
---|---|
Rectangle(IPoint, IPoint, SpatialContext) | A convenience constructor which pulls out the coordinates. |
Rectangle(IRectangle, SpatialContext) | Copy constructor. |
Rectangle(Double, Double, Double, Double, SpatialContext) | A simple constructor without normalization / validation. |
Properties
Name | Description |
---|---|
BoundingBox | |
Center | |
CrossesDateLine | |
HasArea | |
Height | |
IsEmpty | |
MaxX | |
MaxY | |
MinX | |
MinY | |
Width |
Methods
Name | Description |
---|---|
Equals(IRectangle, Object) | All IRectangle implementations should use this definition of System.Object.Equals(System.Object). |
Equals(Object) | |
GetArea(SpatialContext) | |
GetBuffered(Double, SpatialContext) | |
GetHashCode() | |
GetHashCode(IRectangle) | All IRectangle implementations should use this definition of System.Object.GetHashCode(). |
Relate(IPoint) | |
Relate(IRectangle) | |
Relate(IShape) | |
RelateXRange(Double, Double) | |
RelateYRange(Double, Double) | |
Reset(Double, Double, Double, Double) | |
ToString() |