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