Свойство | Type | Description | |
---|---|---|---|
X | double | ||
Y | double |
Méthode | Description | |
---|---|---|
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. | |
Résultat |
public static Add ( |
||
point | Point to increase coordinates of. | |
valueToAdd | double | Value to add to coordinates of the specified point. |
Résultat |
public DistanceTo ( |
||
anotherPoint | Point to calculate distance to. | |
Résultat | double |
public static Divide ( |
||
point | Point to divide coordinates of. | |
factor | double | Division factor. |
Résultat |
public DoublePoint ( double x, double y ) : System | ||
x | double | X axis coordinate. |
y | double | Y axis coordinate. |
Résultat | System |
public Equals ( object obj ) : bool | ||
obj | object | Another point to check equalty to. |
Résultat | bool |
public static Multiply ( |
||
point | Point to multiply coordinates of. | |
factor | double | Multiplication factor. |
Résultat |
public SquaredDistanceTo ( |
||
anotherPoint | Point to calculate distance to. | |
Résultat | double |
public static Subtract ( |
||
point1 | Point to subtract from. | |
point2 | Point to subtract. | |
Résultat |
public static Subtract ( |
||
point | Point to decrease coordinates of. | |
valueToSubtract | double | Value to subtract from coordinates of the specified point. |
Résultat |