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

A basic 2D implementation of a Point.
Наследование: System.Point
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Equals ( System.Point thiz, Object o ) : bool

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

Equals ( object o ) : bool
GetArea ( SpatialContext ctx ) : double
GetBoundingBox ( ) : Rectangle
GetCenter ( ) : System.Point
GetHashCode ( ) : int
GetHashCode ( System.Point thiz ) : int

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

GetX ( ) : double
GetY ( ) : double
HasArea ( ) : bool
PointImpl ( double x, double y, SpatialContext ctx ) : System

A simple constructor without normalization / validation.

Relate ( Shape other ) : SpatialRelation
Reset ( double x, double y ) : void
ToString ( ) : string

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

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

All {@link Point} implementations should use this definition of {@link Object#equals(Object)}.
public static Equals ( System.Point thiz, Object o ) : bool
thiz System.Point
o Object
Результат bool

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

public Equals ( object o ) : bool
o 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 Point} implementations should use this definition of {@link Object#hashCode()}.
public static GetHashCode ( System.Point thiz ) : int
thiz System.Point
Результат int

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

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

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

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

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

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

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

A simple constructor without normalization / validation.
public PointImpl ( double x, double y, SpatialContext ctx ) : System
x double
y double
ctx Spatial4n.Core.Context.SpatialContext
Результат System

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

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

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

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

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

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