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

A basic 2D implementation of a Point.
Inheritance: System.Point
Afficher le fichier Open project: synhershko/Spatial4n Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

Equals() public static méthode

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
Résultat bool

Equals() public méthode

public Equals ( object o ) : bool
o 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

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetHashCode() public static méthode

All {@link Point} implementations should use this definition of {@link Object#hashCode()}.
public static GetHashCode ( System.Point thiz ) : int
thiz System.Point
Résultat int

GetX() public méthode

public GetX ( ) : double
Résultat double

GetY() public méthode

public GetY ( ) : double
Résultat double

HasArea() public méthode

public HasArea ( ) : bool
Résultat bool

PointImpl() public méthode

A simple constructor without normalization / validation.
public PointImpl ( double x, double y, SpatialContext ctx ) : System
x double
y double
ctx Spatial4n.Core.Context.SpatialContext
Résultat System

Relate() public méthode

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

Reset() public méthode

public Reset ( double x, double y ) : void
x double
y double
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string