C# 클래스 Accord.DoublePoint

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

공개 프로퍼티들

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

공개 메소드들

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

Addition operator - adds values of two points.

Add ( DoublePoint point, double valueToAdd ) : DoublePoint

Addition operator - adds scalar to the specified point.

DistanceTo ( DoublePoint anotherPoint ) : double

Calculate Euclidean distance between two points.

Divide ( DoublePoint point, double factor ) : DoublePoint

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

DoublePoint ( double x, double y ) : System

Initializes a new instance of the DoublePoint structure.

Equals ( object obj ) : bool

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

EuclideanNorm ( ) : double

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.

Multiply ( DoublePoint point, double factor ) : DoublePoint

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

Round ( ) : IntPoint

Rounds the double precision point.

SquaredDistanceTo ( DoublePoint anotherPoint ) : double

Calculate squared Euclidean distance between two points.

Subtract ( DoublePoint point1, DoublePoint point2 ) : DoublePoint

Subtraction operator - subtracts values of two points.

Subtract ( DoublePoint point, double valueToSubtract ) : DoublePoint

Subtraction operator - subtracts scalar from the specified point.

ToString ( ) : string

Get string representation of the class.

operator ( ) : DoublePoint

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 ( DoublePoint point1, DoublePoint point2 ) : DoublePoint
point1 DoublePoint First point for addition.
point2 DoublePoint Second point for addition.
리턴 DoublePoint

Add() 공개 정적인 메소드

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

DistanceTo() 공개 메소드

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

Divide() 공개 정적인 메소드

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

DoublePoint() 공개 메소드

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

Equals() 공개 메소드

Check if this instance of DoublePoint 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 ( ) : double
리턴 double

GetHashCode() 공개 메소드

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

Multiply() 공개 정적인 메소드

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

Round() 공개 메소드

Rounds the double precision point.
public Round ( ) : IntPoint
리턴 IntPoint

SquaredDistanceTo() 공개 메소드

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

Subtract() 공개 정적인 메소드

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

Subtract() 공개 정적인 메소드

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

ToString() 공개 메소드

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

operator() 공개 정적인 메소드

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

operator() 공개 정적인 메소드

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

프로퍼티 상세

X 공개적으로 프로퍼티

X coordinate.
public double X
리턴 double

Y 공개적으로 프로퍼티

Y coordinate.
public double Y
리턴 double