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