Свойство | Тип | Описание | |
---|---|---|---|
X | int | ||
Y | int |
Метод | Описание | |
---|---|---|
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. | |
Результат |
public static Add ( |
||
point | Point to increase coordinates of. | |
valueToAdd | int | Value to add to coordinates of the specified point. |
Результат |
public DistanceTo ( |
||
anotherPoint | Point to calculate distance to. | |
Результат | float |
public static Divide ( |
||
point | Point to divide coordinates of. | |
factor | int | Division factor. |
Результат |
public Equals ( object obj ) : bool | ||
obj | object | Another point to check equalty to. |
Результат | bool |
public IntPoint ( int x, int y ) : System | ||
x | int | X axis coordinate. |
y | int | Y axis coordinate. |
Результат | System |
public static Multiply ( |
||
point | Point to multiply coordinates of. | |
factor | int | Multiplication factor. |
Результат |
public SquaredDistanceTo ( Point anotherPoint ) : float | ||
anotherPoint | Point | Point to calculate distance to. |
Результат | float |
public static Subtract ( |
||
point1 | Point to subtract from. | |
point2 | Point to subtract. | |
Результат |
public static Subtract ( |
||
point | Point to decrease coordinates of. | |
valueToSubtract | int | Value to subtract from coordinates of the specified point. |
Результат |