Describes a 2D-point.
More...
|
| static readonly int | SizeInBytes = System.Runtime.InteropServices.Marshal.SizeOf(new Point()) |
| | Defines the size of the Point struct in bytes. More...
|
| |
Describes a 2D-point.
Definition at line 12 of file Point.cs.
| Shift.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. |
Definition at line 57 of file Point.cs.
| Shift.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. |
Definition at line 67 of file Point.cs.
| override bool Shift.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.
Definition at line 144 of file Point.cs.
| bool Shift.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.
Definition at line 154 of file Point.cs.
| override int Shift.Point.GetHashCode |
( |
| ) |
|
|
inline |
Gets the hash code of this Point.
- Returns
- Hash code of this Point.
Definition at line 163 of file Point.cs.
| static Shift.Point.operator System.Drawing.Point |
( |
Point |
p | ) |
|
|
inlineexplicitstatic |
| static Shift.Point.operator System.Drawing.Size |
( |
Point |
p | ) |
|
|
inlineexplicitstatic |
| static bool Shift.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.
Definition at line 134 of file Point.cs.
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.
Definition at line 101 of file Point.cs.
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.
Definition at line 79 of file Point.cs.
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.
Definition at line 90 of file Point.cs.
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.
Definition at line 112 of file Point.cs.
| static bool Shift.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.
Definition at line 123 of file Point.cs.
| override string Shift.Point.ToString |
( |
| ) |
|
|
inline |
Returns a String representation of this Point in the format: {X:[X] Y:[Y]}
- Returns
- String representation of this Point.
Definition at line 173 of file Point.cs.
Gets a Vector2 representation for this object.
- Returns
- A Vector2 representation for this object.
Definition at line 182 of file Point.cs.
| readonly int Shift.Point.SizeInBytes = System.Runtime.InteropServices.Marshal.SizeOf(new Point()) |
|
static |
Defines the size of the Point struct in bytes.
Definition at line 17 of file Point.cs.
Returns a Point with coordinates 0, 0.
Definition at line 25 of file Point.cs.
The documentation for this struct was generated from the following file: