C# Class SharpNeat.Domains.IntPoint

Defines a 2D point with integer Cartesian coordinates.
Datei anzeigen Open project: colgreen/sharpneat Class Usage Examples

Public Properties

Property Type Description
_x int
_y int

Public Methods

Method Description
CalculateDistance ( IntPoint a, IntPoint b ) : double

Calculate Euclidean distance between two points.

CalculateDistance ( IntPoint a, int x, int y ) : double

Calculate Euclidean distance between two points.

Equals ( object obj ) : bool
GetHashCode ( ) : int
IntPoint ( int x, int y ) : System

Construct point with the specified coordinates.

operator ( ) : IntPoint
operator ( ) : bool

Method Details

CalculateDistance() public static method

Calculate Euclidean distance between two points.
public static CalculateDistance ( IntPoint a, IntPoint b ) : double
a IntPoint
b IntPoint
return double

CalculateDistance() public static method

Calculate Euclidean distance between two points.
public static CalculateDistance ( IntPoint a, int x, int y ) : double
a IntPoint
x int
y int
return double

Equals() public method

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

GetHashCode() public method

public GetHashCode ( ) : int
return int

IntPoint() public method

Construct point with the specified coordinates.
public IntPoint ( int x, int y ) : System
x int
y int
return System

operator() public static method

public static operator ( ) : IntPoint
return IntPoint

operator() public static method

public static operator ( ) : bool
return bool

Property Details

_x public_oe property

X-axis coordinate.
public int _x
return int

_y public_oe property

Y-axis coordinate.
public int _y
return int