C# 클래스 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.
상속: Rectangle
파일 보기 프로젝트 열기: synhershko/Spatial4n 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
Relate_Range ( double int_min, double int_max, double ext_min, double ext_max ) : SpatialRelation

메소드 상세

Equals() 공개 정적인 메소드

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
리턴 bool

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

GetArea() 공개 메소드

public GetArea ( SpatialContext ctx ) : double
ctx Spatial4n.Core.Context.SpatialContext
리턴 double

GetBoundingBox() 공개 메소드

public GetBoundingBox ( ) : Rectangle
리턴 Rectangle

GetCenter() 공개 메소드

public GetCenter ( ) : System.Point
리턴 System.Point

GetCrossesDateLine() 공개 메소드

public GetCrossesDateLine ( ) : bool
리턴 bool

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

GetHashCode() 공개 정적인 메소드

public static GetHashCode ( Rectangle thiz ) : int
thiz Rectangle
리턴 int

GetHeight() 공개 메소드

public GetHeight ( ) : double
리턴 double

GetMaxX() 공개 메소드

public GetMaxX ( ) : double
리턴 double

GetMaxY() 공개 메소드

public GetMaxY ( ) : double
리턴 double

GetMinX() 공개 메소드

public GetMinX ( ) : double
리턴 double

GetMinY() 공개 메소드

public GetMinY ( ) : double
리턴 double

GetWidth() 공개 메소드

public GetWidth ( ) : double
리턴 double

HasArea() 공개 메소드

public HasArea ( ) : bool
리턴 bool

RectangleImpl() 공개 메소드

public RectangleImpl ( System.Point lowerLeft, System.Point upperRight, SpatialContext ctx ) : System
lowerLeft System.Point
upperRight System.Point
ctx Spatial4n.Core.Context.SpatialContext
리턴 System

RectangleImpl() 공개 메소드

public RectangleImpl ( Rectangle r, SpatialContext ctx ) : System
r Rectangle
ctx Spatial4n.Core.Context.SpatialContext
리턴 System

RectangleImpl() 공개 메소드

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
리턴 System

Relate() 공개 메소드

public Relate ( System.Point point ) : SpatialRelation
point System.Point
리턴 SpatialRelation

Relate() 공개 메소드

public Relate ( Rectangle rect ) : SpatialRelation
rect Rectangle
리턴 SpatialRelation

Relate() 공개 메소드

public Relate ( Shape other ) : SpatialRelation
other Shape
리턴 SpatialRelation

RelateXRange() 공개 메소드

public RelateXRange ( double ext_minX, double ext_maxX ) : SpatialRelation
ext_minX double
ext_maxX double
리턴 SpatialRelation

RelateYRange() 공개 메소드

public RelateYRange ( double ext_minY, double ext_maxY ) : SpatialRelation
ext_minY double
ext_maxY double
리턴 SpatialRelation

Reset() 공개 메소드

public Reset ( double minX, double maxX, double minY, double maxY ) : void
minX double
maxX double
minY double
maxY double
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string