C# 클래스 Accord.IntPoint

파일 보기 프로젝트 열기: accord-net/framework 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
X int
Y int

공개 메소드들

메소드 설명
Add ( IntPoint point1, IntPoint point2 ) : IntPoint

Addition operator - adds values of two points.

Add ( IntPoint point, int valueToAdd ) : IntPoint

Addition operator - adds scalar to the specified point.

DistanceTo ( IntPoint anotherPoint ) : float

Calculate Euclidean distance between two points.

Divide ( IntPoint point, int factor ) : IntPoint

Division operator - divides coordinates of the specified point by scalar value.

Equals ( object obj ) : bool

Check if this instance of IntPoint equal to the specified one.

EuclideanNorm ( ) : float

Calculate Euclidean norm of the vector comprised of the point's coordinates - distance from (0, 0) in other words.

GetHashCode ( ) : int

Get hash code for this instance.

IntPoint ( int x, int y ) : System

Initializes a new instance of the IntPoint structure.

Multiply ( IntPoint point, int factor ) : IntPoint

Multiplication operator - multiplies coordinates of the specified point by scalar value.

SquaredDistanceTo ( Point anotherPoint ) : float

Calculate squared Euclidean distance between two points.

Subtract ( IntPoint point1, IntPoint point2 ) : IntPoint

Subtraction operator - subtracts values of two points.

Subtract ( IntPoint point, int valueToSubtract ) : IntPoint

Subtraction operator - subtracts scalar from the specified point.

ToString ( ) : string

Get string representation of the class.

operator ( ) : IntPoint

Addition operator - adds values of two points.

operator ( ) : bool

Equality operator - checks if two points have equal coordinates.

메소드 상세

Add() 공개 정적인 메소드

Addition operator - adds values of two points.
public static Add ( IntPoint point1, IntPoint point2 ) : IntPoint
point1 IntPoint First point for addition.
point2 IntPoint Second point for addition.
리턴 IntPoint

Add() 공개 정적인 메소드

Addition operator - adds scalar to the specified point.
public static Add ( IntPoint point, int valueToAdd ) : IntPoint
point IntPoint Point to increase coordinates of.
valueToAdd int Value to add to coordinates of the specified point.
리턴 IntPoint

DistanceTo() 공개 메소드

Calculate Euclidean distance between two points.
public DistanceTo ( IntPoint anotherPoint ) : float
anotherPoint IntPoint Point to calculate distance to.
리턴 float

Divide() 공개 정적인 메소드

Division operator - divides coordinates of the specified point by scalar value.
public static Divide ( IntPoint point, int factor ) : IntPoint
point IntPoint Point to divide coordinates of.
factor int Division factor.
리턴 IntPoint

Equals() 공개 메소드

Check if this instance of IntPoint equal to the specified one.
public Equals ( object obj ) : bool
obj object Another point to check equalty to.
리턴 bool

EuclideanNorm() 공개 메소드

Calculate Euclidean norm of the vector comprised of the point's coordinates - distance from (0, 0) in other words.
public EuclideanNorm ( ) : float
리턴 float

GetHashCode() 공개 메소드

Get hash code for this instance.
public GetHashCode ( ) : int
리턴 int

IntPoint() 공개 메소드

Initializes a new instance of the IntPoint structure.
public IntPoint ( int x, int y ) : System
x int X axis coordinate.
y int Y axis coordinate.
리턴 System

Multiply() 공개 정적인 메소드

Multiplication operator - multiplies coordinates of the specified point by scalar value.
public static Multiply ( IntPoint point, int factor ) : IntPoint
point IntPoint Point to multiply coordinates of.
factor int Multiplication factor.
리턴 IntPoint

SquaredDistanceTo() 공개 메소드

Calculate squared Euclidean distance between two points.
public SquaredDistanceTo ( Point anotherPoint ) : float
anotherPoint Point Point to calculate distance to.
리턴 float

Subtract() 공개 정적인 메소드

Subtraction operator - subtracts values of two points.
public static Subtract ( IntPoint point1, IntPoint point2 ) : IntPoint
point1 IntPoint Point to subtract from.
point2 IntPoint Point to subtract.
리턴 IntPoint

Subtract() 공개 정적인 메소드

Subtraction operator - subtracts scalar from the specified point.
public static Subtract ( IntPoint point, int valueToSubtract ) : IntPoint
point IntPoint Point to decrease coordinates of.
valueToSubtract int Value to subtract from coordinates of the specified point.
리턴 IntPoint

ToString() 공개 메소드

Get string representation of the class.
public ToString ( ) : string
리턴 string

operator() 공개 정적인 메소드

Addition operator - adds values of two points.
public static operator ( ) : IntPoint
리턴 IntPoint

operator() 공개 정적인 메소드

Equality operator - checks if two points have equal coordinates.
public static operator ( ) : bool
리턴 bool

프로퍼티 상세

X 공개적으로 프로퍼티

X coordinate.
public int X
리턴 int

Y 공개적으로 프로퍼티

Y coordinate.
public int Y
리턴 int