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