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