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