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

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

Public Methods

Method 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 method

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
return bool

Equals() public method

public Equals ( object o ) : bool
o object
return bool

GetArea() public method

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

GetBoundingBox() public method

public GetBoundingBox ( ) : Rectangle
return Rectangle

GetCenter() public method

public GetCenter ( ) : System.Point
return System.Point

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetHashCode() public static method

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

GetX() public method

public GetX ( ) : double
return double

GetY() public method

public GetY ( ) : double
return double

HasArea() public method

public HasArea ( ) : bool
return bool

PointImpl() public method

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

Relate() public method

public Relate ( Shape other ) : SpatialRelation
other Shape
return SpatialRelation

Reset() public method

public Reset ( double x, double y ) : void
x double
y double
return void

ToString() public method

public ToString ( ) : string
return string