Inherits IEquatable< Point >.
|
| Point (int x, int y) |
| Constructs a point with X and Y from two values.
|
|
| Point (int value) |
| Constructs a point with X and Y set to the same value.
|
|
override bool | Equals (object obj) |
| Compares whether current instance is equal to specified Object.
|
|
bool | Equals (Point other) |
| Compares whether current instance is equal to specified Point.
|
|
override int | GetHashCode () |
| Gets the hash code of this Point.
|
|
override string | ToString () |
| Returns a String representation of this Point in the format: {X:[X] Y:[Y]}.
|
|
Vector2 | ToVector2 () |
| Gets a Vector2 representation for this object.
|
|
void | Deconstruct (out int x, out int y) |
| Deconstruction method for Point.
|
|
|
int | X |
| The x coordinate of this Point.
|
|
int | Y |
| The y coordinate of this Point.
|
|
◆ Point() [1/2]
Mathf.Point.Point |
( |
int | x, |
|
|
int | y ) |
|
inline |
Constructs a point with X and Y from two values.
- Parameters
-
x | The x coordinate in 2d-space. |
y | The y coordinate in 2d-space. |
◆ Point() [2/2]
Mathf.Point.Point |
( |
int | value | ) |
|
|
inline |
Constructs a point with X and Y set to the same value.
- Parameters
-
value | The x and y coordinates in 2d-space. |
◆ Deconstruct()
void Mathf.Point.Deconstruct |
( |
out int | x, |
|
|
out int | y ) |
|
inline |
Deconstruction method for Point.
- Parameters
-
◆ Equals() [1/2]
override bool Mathf.Point.Equals |
( |
object | obj | ) |
|
|
inline |
Compares whether current instance is equal to specified Object.
- Parameters
-
obj | The Object to compare. |
- Returns
true
if the instances are equal; false
otherwise.
◆ Equals() [2/2]
bool Mathf.Point.Equals |
( |
Point | other | ) |
|
|
inline |
Compares whether current instance is equal to specified Point.
- Parameters
-
other | The Point to compare. |
- Returns
true
if the instances are equal; false
otherwise.
◆ GetHashCode()
override int Mathf.Point.GetHashCode |
( |
| ) |
|
|
inline |
Gets the hash code of this Point.
- Returns
- Hash code of this Point.
◆ operator!=()
static bool Mathf.Point.operator!= |
( |
Point | a, |
|
|
Point | b ) |
|
inlinestatic |
Compares whether two Point instances are not equal.
- Parameters
-
a | Point instance on the left of the not equal sign. |
b | Point instance on the right of the not equal sign. |
- Returns
true
if the instances are not equal; false
otherwise.
◆ operator*()
Multiplies the components of two points by each other.
- Parameters
-
value1 | Source Point on the left of the mul sign. |
value2 | Source Point on the right of the mul sign. |
- Returns
- Result of the multiplication.
◆ operator+()
Adds two points.
- Parameters
-
value1 | Source Point on the left of the add sign. |
value2 | Source Point on the right of the add sign. |
- Returns
- Sum of the points.
◆ operator-()
Subtracts a Point from a Point.
- Parameters
-
value1 | Source Point on the left of the sub sign. |
value2 | Source Point on the right of the sub sign. |
- Returns
- Result of the subtraction.
◆ operator/()
Divides the components of a Point by the components of another Point.
- Parameters
-
source | Source Point on the left of the div sign. |
divisor | Divisor Point on the right of the div sign. |
- Returns
- The result of dividing the points.
◆ operator==()
static bool Mathf.Point.operator== |
( |
Point | a, |
|
|
Point | b ) |
|
inlinestatic |
Compares whether two Point instances are equal.
- Parameters
-
a | Point instance on the left of the equal sign. |
b | Point instance on the right of the equal sign. |
- Returns
true
if the instances are equal; false
otherwise.
◆ ToString()
override string Mathf.Point.ToString |
( |
| ) |
|
|
inline |
Returns a String representation of this Point in the format: {X:[X] Y:[Y]}.
- Returns
- String representation of this Point.
◆ ToVector2()
Gets a Vector2 representation for this object.
- Returns
- A Vector2 representation for this object.
The x coordinate of this Point.
The y coordinate of this Point.
◆ zeroPoint
readonly Point Mathf.Point.zeroPoint = new Point() |
|
staticprivate |
◆ DebugDisplayString
string Mathf.Point.DebugDisplayString |
|
getpackage |
◆ Zero
Returns a Point with coordinates 0, 0.
The documentation for this struct was generated from the following file:
- /github/workspace/code/addons/nsharp/NebulaEngine/xna/Point.cs