Represents a compressed Vector2 value for network transmission. More...
Inherits INetworkStruct, and IEquatable< Vector2Compressed >.
Public Member Functions | |
override bool | Equals (object obj) |
Checks if the provided object is a Vector2Compressed instance and if it's equal to the current Vector2Compressed instance. More... | |
bool | Equals (Vector2Compressed other) |
Checks if the current Vector2Compressed instance is equal to the other Vector2Compressed instance. More... | |
override int | GetHashCode () |
Returns the hash code for the current Vector2Compressed instance. More... | |
Static Public Member Functions | |
static implicit | operator Vector2 (Vector2Compressed q) |
Implicit conversion from Vector2Compressed to Vector2. More... | |
static implicit | operator Vector2Compressed (Vector2 v) |
Implicit conversion from Vector2 to Vector2Compressed. More... | |
static bool | operator!= (Vector2Compressed left, Vector2Compressed right) |
Inequality operator for Vector2Compressed struct. More... | |
static bool | operator== (Vector2Compressed left, Vector2Compressed right) |
Equality operator for Vector2Compressed struct. More... | |
Public Attributes | |
int | xEncoded |
Encoded value of the x component. More... | |
int | yEncoded |
Encoded value of the y component. More... | |
Properties | |
float | X [get, set] |
Gets or sets the x component. More... | |
float | Y [get, set] |
Gets or sets the y component. More... | |
Represents a compressed Vector2 value for network transmission.
override bool Equals | ( | object | obj | ) |
Checks if the provided object is a Vector2Compressed instance and if it's equal to the current Vector2Compressed instance.
obj | The object to compare with the current Vector2Compressed instance. |
bool Equals | ( | Vector2Compressed | other | ) |
Checks if the current Vector2Compressed instance is equal to the other Vector2Compressed instance.
other | The other Vector2Compressed instance to compare with the current Vector2Compressed instance. |
override int GetHashCode | ( | ) |
Returns the hash code for the current Vector2Compressed instance.
|
static |
Implicit conversion from Vector2Compressed to Vector2.
q | The Vector2Compressed instance to convert. |
|
static |
Implicit conversion from Vector2 to Vector2Compressed.
v | The Vector2 value to convert. |
|
static |
Inequality operator for Vector2Compressed struct.
left | First Vector2Compressed instance. |
right | Second Vector2Compressed instance. |
|
static |
Equality operator for Vector2Compressed struct.
left | First Vector2Compressed instance. |
right | Second Vector2Compressed instance. |
int xEncoded |
Encoded value of the x component.
int yEncoded |
Encoded value of the y component.
|
getset |
Gets or sets the x component.
|
getset |
Gets or sets the y component.