C# Class Spatial4n.Core.Shapes.Impl.RectangleImpl

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: Rectangle
Afficher le fichier Open project: synhershko/Spatial4n Class Usage Examples

Méthodes publiques

Méthode Description
Equals ( Rectangle thiz, Object o ) : bool

All {@link Rectangle} implementations should use this definition of {@link Object#equals(Object)}.

Equals ( object obj ) : bool
GetArea ( SpatialContext ctx ) : double
GetBoundingBox ( ) : Rectangle
GetCenter ( ) : System.Point
GetCrossesDateLine ( ) : bool
GetHashCode ( ) : int
GetHashCode ( Rectangle thiz ) : int
GetHeight ( ) : double
GetMaxX ( ) : double
GetMaxY ( ) : double
GetMinX ( ) : double
GetMinY ( ) : double
GetWidth ( ) : double
HasArea ( ) : bool
RectangleImpl ( System.Point lowerLeft, System.Point upperRight, SpatialContext ctx ) : System
RectangleImpl ( Rectangle r, SpatialContext ctx ) : System
RectangleImpl ( double minX, double maxX, double minY, double maxY, SpatialContext ctx ) : System
Relate ( System.Point point ) : SpatialRelation
Relate ( Rectangle rect ) : SpatialRelation
Relate ( Shape other ) : SpatialRelation
RelateXRange ( double ext_minX, double ext_maxX ) : SpatialRelation
RelateYRange ( double ext_minY, double ext_maxY ) : SpatialRelation
Reset ( double minX, double maxX, double minY, double maxY ) : void
ToString ( ) : string

Private Methods

Méthode Description
Relate_Range ( double int_min, double int_max, double ext_min, double ext_max ) : SpatialRelation

Method Details

Equals() public static méthode

All {@link Rectangle} implementations should use this definition of {@link Object#equals(Object)}.
public static Equals ( Rectangle thiz, Object o ) : bool
thiz Rectangle
o Object
Résultat bool

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetArea() public méthode

public GetArea ( SpatialContext ctx ) : double
ctx Spatial4n.Core.Context.SpatialContext
Résultat double

GetBoundingBox() public méthode

public GetBoundingBox ( ) : Rectangle
Résultat Rectangle

GetCenter() public méthode

public GetCenter ( ) : System.Point
Résultat System.Point

GetCrossesDateLine() public méthode

public GetCrossesDateLine ( ) : bool
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetHashCode() public static méthode

public static GetHashCode ( Rectangle thiz ) : int
thiz Rectangle
Résultat int

GetHeight() public méthode

public GetHeight ( ) : double
Résultat double

GetMaxX() public méthode

public GetMaxX ( ) : double
Résultat double

GetMaxY() public méthode

public GetMaxY ( ) : double
Résultat double

GetMinX() public méthode

public GetMinX ( ) : double
Résultat double

GetMinY() public méthode

public GetMinY ( ) : double
Résultat double

GetWidth() public méthode

public GetWidth ( ) : double
Résultat double

HasArea() public méthode

public HasArea ( ) : bool
Résultat bool

RectangleImpl() public méthode

public RectangleImpl ( System.Point lowerLeft, System.Point upperRight, SpatialContext ctx ) : System
lowerLeft System.Point
upperRight System.Point
ctx Spatial4n.Core.Context.SpatialContext
Résultat System

RectangleImpl() public méthode

public RectangleImpl ( Rectangle r, SpatialContext ctx ) : System
r Rectangle
ctx Spatial4n.Core.Context.SpatialContext
Résultat System

RectangleImpl() public méthode

public RectangleImpl ( double minX, double maxX, double minY, double maxY, SpatialContext ctx ) : System
minX double
maxX double
minY double
maxY double
ctx Spatial4n.Core.Context.SpatialContext
Résultat System

Relate() public méthode

public Relate ( System.Point point ) : SpatialRelation
point System.Point
Résultat SpatialRelation

Relate() public méthode

public Relate ( Rectangle rect ) : SpatialRelation
rect Rectangle
Résultat SpatialRelation

Relate() public méthode

public Relate ( Shape other ) : SpatialRelation
other Shape
Résultat SpatialRelation

RelateXRange() public méthode

public RelateXRange ( double ext_minX, double ext_maxX ) : SpatialRelation
ext_minX double
ext_maxX double
Résultat SpatialRelation

RelateYRange() public méthode

public RelateYRange ( double ext_minY, double ext_maxY ) : SpatialRelation
ext_minY double
ext_maxY double
Résultat SpatialRelation

Reset() public méthode

public Reset ( double minX, double maxX, double minY, double maxY ) : void
minX double
maxX double
minY double
maxY double
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string