C# Класс SharpNeat.Domains.IntPoint

Defines a 2D point with integer Cartesian coordinates.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
_x int
_y int

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

Метод Описание
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

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

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

Calculate Euclidean distance between two points.
public static CalculateDistance ( IntPoint a, IntPoint b ) : double
a IntPoint
b IntPoint
Результат double

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

Calculate Euclidean distance between two points.
public static CalculateDistance ( IntPoint a, int x, int y ) : double
a IntPoint
x int
y int
Результат double

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

public Equals ( object obj ) : bool
obj object
Результат bool

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

public GetHashCode ( ) : int
Результат int

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

Construct point with the specified coordinates.
public IntPoint ( int x, int y ) : System
x int
y int
Результат System

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

public static operator ( ) : IntPoint
Результат IntPoint

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

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

Описание свойств

_x публичное свойство

X-axis coordinate.
public int _x
Результат int

_y публичное свойство

Y-axis coordinate.
public int _y
Результат int