Dungeon Architect
17.0.0
|
A 2d vector represented by integers. More...
Public Member Functions | |
Vector2i (int x, int y) | |
Initializes a new instance of the Vector2i struct with a specified coordinate. More... | |
override int | GetHashCode () |
Gets a unique hash code for this instance. More... | |
override string | ToString () |
Turns the instance into a human-readable string. More... | |
override bool | Equals (object obj) |
Checks for equality between this instance and a specified object. More... | |
bool | Equals (Vector2i other) |
Checks for equality between this instance and a specified instance of Vector2i. More... | |
Static Public Member Functions | |
static bool | operator== (Vector2i left, Vector2i right) |
Compares two instances of Vector2i for equality. More... | |
static bool | operator!= (Vector2i left, Vector2i right) |
Compares two instances of Vector2i for inequality. More... | |
Public Attributes | |
int | X |
The X coordinate. More... | |
int | Y |
The Y coordinate. More... | |
Static Public Attributes | |
static readonly Vector2i | Min = new Vector2i(int.MinValue, int.MinValue) |
A vector where both X and Y are int.MinValue. More... | |
static readonly Vector2i | Max = new Vector2i(int.MaxValue, int.MaxValue) |
A vector where both X and Y are int.MaxValue. More... | |
static readonly Vector2i | Zero = new Vector2i(0, 0) |
A vector where both X and Y are 0. More... | |
A 2d vector represented by integers.
Definition at line 12 of file Vector2i.cs.
SharpNav.Geometry.Vector2i.Vector2i | ( | int | x, |
int | y | ||
) |
Initializes a new instance of the Vector2i struct with a specified coordinate.
x | The X coordinate. |
y | The Y coordinate. |
Definition at line 44 of file Vector2i.cs.
override bool SharpNav.Geometry.Vector2i.Equals | ( | object | obj | ) |
Checks for equality between this instance and a specified object.
obj | An object. |
Definition at line 96 of file Vector2i.cs.
bool SharpNav.Geometry.Vector2i.Equals | ( | Vector2i | other | ) |
Checks for equality between this instance and a specified instance of Vector2i.
other | An instance of Vector2i. |
Definition at line 110 of file Vector2i.cs.
override int SharpNav.Geometry.Vector2i.GetHashCode | ( | ) |
Gets a unique hash code for this instance.
Definition at line 76 of file Vector2i.cs.
Compares two instances of Vector2i for inequality.
Definition at line 67 of file Vector2i.cs.
Compares two instances of Vector2i for equality.
Definition at line 56 of file Vector2i.cs.
override string SharpNav.Geometry.Vector2i.ToString | ( | ) |
Turns the instance into a human-readable string.
Definition at line 86 of file Vector2i.cs.
A vector where both X and Y are int.MaxValue.
Definition at line 22 of file Vector2i.cs.
A vector where both X and Y are int.MinValue.
Definition at line 17 of file Vector2i.cs.
int SharpNav.Geometry.Vector2i.X |
The X coordinate.
Definition at line 32 of file Vector2i.cs.
int SharpNav.Geometry.Vector2i.Y |
The Y coordinate.
Definition at line 37 of file Vector2i.cs.
A vector where both X and Y are 0.
Definition at line 27 of file Vector2i.cs.