C# Класс Spatial4n.Core.Shapes.Impl.CircleImpl

A circle, also known as a point-radius, based on a {@link com.spatial4j.core.distance.DistanceCalculator} which does all the work. This implementation implementation should work for both cartesian 2D and geodetic sphere surfaces.
Наследование: Circle
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
ctx Spatial4n.Core.Context.SpatialContext
enclosingBox Rectangle
point System.Point
radiusDEG double

Открытые методы

Метод Описание
CircleImpl ( System.Point p, double radiusDEG, SpatialContext ctx ) : System
Contains ( double x, double y ) : bool
Equals ( Circle thiz, Object o ) : bool
Equals ( object obj ) : bool
GetArea ( SpatialContext ctx ) : double
GetBoundingBox ( ) : Rectangle
GetCenter ( ) : System.Point
GetHashCode ( ) : int
GetHashCode ( Circle thiz ) : int

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

GetRadius ( ) : double
HasArea ( ) : bool
Relate ( Circle circle ) : SpatialRelation
Relate ( System.Point point ) : SpatialRelation
Relate ( Rectangle r ) : SpatialRelation
Relate ( Shape other ) : SpatialRelation
Reset ( double x, double y, double radiusDEG ) : void
ToString ( ) : string

Защищенные методы

Метод Описание
GetXAxis ( ) : double

The X coordinate of where the circle axis intersect.

GetYAxis ( ) : double

The Y coordinate of where the circle axis intersect.

RelateRectanglePhase2 ( Rectangle r, SpatialRelation bboxSect ) : SpatialRelation

Описание методов

CircleImpl() публичный Метод

public CircleImpl ( System.Point p, double radiusDEG, SpatialContext ctx ) : System
p System.Point
radiusDEG double
ctx Spatial4n.Core.Context.SpatialContext
Результат System

Contains() публичный Метод

public Contains ( double x, double y ) : bool
x double
y double
Результат bool

Equals() публичный статический Метод

public static Equals ( Circle thiz, Object o ) : bool
thiz Circle
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

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

GetHashCode() публичный статический Метод

All {@link Circle} implementations should use this definition of {@link Object#hashCode()}.
public static GetHashCode ( Circle thiz ) : int
thiz Circle
Результат int

GetRadius() публичный Метод

public GetRadius ( ) : double
Результат double

GetXAxis() защищенный Метод

The X coordinate of where the circle axis intersect.
protected GetXAxis ( ) : double
Результат double

GetYAxis() защищенный Метод

The Y coordinate of where the circle axis intersect.
protected GetYAxis ( ) : double
Результат double

HasArea() публичный Метод

public HasArea ( ) : bool
Результат bool

Relate() публичный Метод

public Relate ( Circle circle ) : SpatialRelation
circle Circle
Результат SpatialRelation

Relate() публичный Метод

public Relate ( System.Point point ) : SpatialRelation
point System.Point
Результат SpatialRelation

Relate() публичный Метод

public Relate ( Rectangle r ) : SpatialRelation
r Rectangle
Результат SpatialRelation

Relate() публичный Метод

public Relate ( Shape other ) : SpatialRelation
other Shape
Результат SpatialRelation

RelateRectanglePhase2() защищенный Метод

protected RelateRectanglePhase2 ( Rectangle r, SpatialRelation bboxSect ) : SpatialRelation
r Rectangle
bboxSect SpatialRelation
Результат SpatialRelation

Reset() публичный Метод

public Reset ( double x, double y, double radiusDEG ) : void
x double
y double
radiusDEG double
Результат void

ToString() публичный Метод

public ToString ( ) : string
Результат string

Описание свойств

ctx защищенное свойство

protected SpatialContext,Spatial4n.Core.Context ctx
Результат Spatial4n.Core.Context.SpatialContext

enclosingBox защищенное свойство

protected Rectangle enclosingBox
Результат Rectangle

point защищенное свойство

protected Point,System point
Результат System.Point

radiusDEG защищенное свойство

protected double radiusDEG
Результат double