C# 클래스 SharpNeat.Domains.IntPoint

Defines a 2D point with integer Cartesian coordinates.
파일 보기 프로젝트 열기: colgreen/sharpneat 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
_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