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