프로퍼티 | 타입 | 설명 | |
---|---|---|---|
X | double | ||
Y | double |
메소드 | 설명 | |
---|---|---|
Add ( |
Addition operator - adds values of two points.
|
|
Add ( |
Addition operator - adds scalar to the specified point.
|
|
DistanceTo ( |
Calculate Euclidean distance between two points.
|
|
Divide ( |
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 ( |
Multiplication operator - multiplies coordinates of the specified point by scalar value.
|
|
Round ( ) : |
Rounds the double precision point.
|
|
SquaredDistanceTo ( |
Calculate squared Euclidean distance between two points.
|
|
Subtract ( |
Subtraction operator - subtracts values of two points.
|
|
Subtract ( |
Subtraction operator - subtracts scalar from the specified point.
|
|
ToString ( ) : string |
Get string representation of the class.
|
|
operator ( ) : |
Addition operator - adds values of two points.
|
|
operator ( ) : bool |
Equality operator - checks if two points have equal coordinates.
|
public static Add ( |
||
point1 | First point for addition. | |
point2 | Second point for addition. | |
리턴 |
public static Add ( |
||
point | Point to increase coordinates of. | |
valueToAdd | double | Value to add to coordinates of the specified point. |
리턴 |
public DistanceTo ( |
||
anotherPoint | Point to calculate distance to. | |
리턴 | double |
public static Divide ( |
||
point | Point to divide coordinates of. | |
factor | double | Division factor. |
리턴 |
public DoublePoint ( double x, double y ) : System | ||
x | double | X axis coordinate. |
y | double | Y axis coordinate. |
리턴 | System |
public Equals ( object obj ) : bool | ||
obj | object | Another point to check equalty to. |
리턴 | bool |
public static Multiply ( |
||
point | Point to multiply coordinates of. | |
factor | double | Multiplication factor. |
리턴 |
public SquaredDistanceTo ( |
||
anotherPoint | Point to calculate distance to. | |
리턴 | double |
public static Subtract ( |
||
point1 | Point to subtract from. | |
point2 | Point to subtract. | |
리턴 |
public static Subtract ( |
||
point | Point to decrease coordinates of. | |
valueToSubtract | double | Value to subtract from coordinates of the specified point. |
리턴 |