Свойство | Тип | Описание | |
---|---|---|---|
X | float | ||
Y | float |
Метод | Описание | |
---|---|---|
Add ( Point point1, Point point2 ) : Point |
Addition operator - adds values of two points.
|
|
Add ( Point point, float valueToAdd ) : Point |
Addition operator - adds scalar to the specified point.
|
|
DistanceTo ( Point anotherPoint ) : float |
Calculate Euclidean distance between two points.
|
|
Divide ( Point point, float factor ) : Point |
Division operator - divides coordinates of the specified point by scalar value.
|
|
Equals ( object obj ) : bool |
Check if this instance of Point 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.
|
|
Multiply ( Point point, float factor ) : Point |
Multiplication operator - multiplies coordinates of the specified point by scalar value.
|
|
Point ( float x, float y ) : System |
Initializes a new instance of the Point structure.
|
|
Round ( ) : |
Rounds the single precision point.
|
|
SquaredDistanceTo ( Point anotherPoint ) : float |
Calculate squared Euclidean distance between two points.
|
|
Subtract ( Point point1, Point point2 ) : Point |
Subtraction operator - subtracts values of two points.
|
|
Subtract ( Point point, float valueToSubtract ) : Point |
Subtraction operator - subtracts scalar from the specified point.
|
|
ToString ( ) : string |
Get string representation of the class.
|
|
operator ( ) : Point |
Addition operator - adds values of two points.
|
|
operator ( ) : bool |
Equality operator - checks if two points have equal coordinates.
|
public static Add ( Point point1, Point point2 ) : Point | ||
point1 | Point | First point for addition. |
point2 | Point | Second point for addition. |
Результат | Point |
public static Add ( Point point, float valueToAdd ) : Point | ||
point | Point | Point to increase coordinates of. |
valueToAdd | float | Value to add to coordinates of the specified point. |
Результат | Point |
public DistanceTo ( Point anotherPoint ) : float | ||
anotherPoint | Point | Point to calculate distance to. |
Результат | float |
public static Divide ( Point point, float factor ) : Point | ||
point | Point | Point to divide coordinates of. |
factor | float | Division factor. |
Результат | Point |
public Equals ( object obj ) : bool | ||
obj | object | Another point to check equalty to. |
Результат | bool |
public static Multiply ( Point point, float factor ) : Point | ||
point | Point | Point to multiply coordinates of. |
factor | float | Multiplication factor. |
Результат | Point |
public Point ( float x, float y ) : System | ||
x | float | X axis coordinate. |
y | float | Y axis coordinate. |
Результат | System |
public SquaredDistanceTo ( Point anotherPoint ) : float | ||
anotherPoint | Point | Point to calculate distance to. |
Результат | float |
public static Subtract ( Point point1, Point point2 ) : Point | ||
point1 | Point | Point to subtract from. |
point2 | Point | Point to subtract. |
Результат | Point |
public static Subtract ( Point point, float valueToSubtract ) : Point | ||
point | Point | Point to decrease coordinates of. |
valueToSubtract | float | Value to subtract from coordinates of the specified point. |
Результат | Point |