Represents a compressed Vector3 value for network transmission.
More...
Inherits INetworkStruct, and IEquatable< Vector3Compressed >.
|
override bool | Equals (object obj) |
| Checks if the provided object is a Vector3Compressed instance and if it's equal to the current Vector3Compressed instance.
|
|
bool | Equals (Vector3Compressed other) |
| Checks if the current Vector3Compressed instance is equal to the other Vector3Compressed instance.
|
|
override int | GetHashCode () |
| Returns the hash code for the current 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.
|
|
|
float | X [get, set] |
| Gets or sets the x component.
|
|
float | Y [get, set] |
| Gets or sets the y component.
|
|
float | Z [get, set] |
| Gets or sets the z component.
|
|
Represents a compressed Vector3 value for network transmission.
◆ Equals() [1/2]
override bool Equals |
( |
object |
obj | ) |
|
Checks if the provided object is a Vector3Compressed instance and if it's equal to the current Vector3Compressed instance.
- Parameters
-
obj | The object to compare with the current Vector3Compressed instance. |
- Returns
- True if the provided object is a Vector3Compressed instance and it's equal to the current Vector3Compressed instance, otherwise false.
◆ Equals() [2/2]
Checks if the current Vector3Compressed instance is equal to the other Vector3Compressed instance.
- Parameters
-
other | The other Vector3Compressed instance to compare with the current Vector3Compressed instance. |
- Returns
- True if the values of both Vector3Compressed instances are equal, otherwise false.
◆ GetHashCode()
override int GetHashCode |
( |
| ) |
|
Returns the hash code for the current Vector3Compressed instance.
- Returns
- A hash code for the current Vector3Compressed instance.
◆ operator Vector2()
Implicit conversion from Vector3Compressed to Vector2.
- Parameters
-
q | The Vector3Compressed instance to convert. |
- Returns
- The decompressed Vector2 value of the Vector3Compressed instance.
◆ operator Vector3()
Implicit conversion from Vector3Compressed to Vector3.
- Parameters
-
q | The Vector3Compressed instance to convert. |
- Returns
- The decompressed Vector3 value of the Vector3Compressed instance.
◆ operator Vector3Compressed() [1/2]
Implicit conversion from Vector2 to Vector3Compressed.
- Parameters
-
v | The Vector2 value to convert. |
- Returns
- A new Vector3Compressed instance with the compressed value of the Vector2.
◆ operator Vector3Compressed() [2/2]
Implicit conversion from Vector3 to Vector3Compressed.
- Parameters
-
v | The Vector3 value to convert. |
- Returns
- A new Vector3Compressed instance with the compressed value of the Vector3.
◆ operator!=()
Inequality operator for Vector3Compressed struct.
- Parameters
-
left | First Vector3Compressed instance. |
right | Second Vector3Compressed instance. |
- Returns
- True if the value of the first Vector3Compressed instance is not equal to the value of the second Vector3Compressed instance, otherwise false.
◆ operator==()
Equality operator for Vector3Compressed struct.
- Parameters
-
left | First Vector3Compressed instance. |
right | Second Vector3Compressed instance. |
- Returns
- True if the value of the first Vector3Compressed instance is equal to the value of the second Vector3Compressed instance, otherwise false.