C# Class SharpNeat.Domains.IntPoint

Defines a 2D point with integer Cartesian coordinates.
Afficher le fichier Open project: colgreen/sharpneat Class Usage Examples

Méthodes publiques

Свойство Type Description
_x int
_y int

Méthodes publiques

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

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

CalculateDistance() public static méthode

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

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

IntPoint() public méthode

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

operator() public static méthode

public static operator ( ) : IntPoint
Résultat IntPoint

operator() public static méthode

public static operator ( ) : bool
Résultat bool

Property Details

_x public_oe property

X-axis coordinate.
public int _x
Résultat int

_y public_oe property

Y-axis coordinate.
public int _y
Résultat int