Compressed direction (always normalized) to be used as part of input to optimize bandwidth, encoded as an angle using a single byte (2 degrees of accuracy). More...
Public Member Functions | |
override int | GetHashCode () |
Overrides the hash code generation of this type. More... | |
Static Public Member Functions | |
static implicit | operator FPVector2 (InputDirection inputDirection) |
Casts to normalized FPVector2. Defaults to zero-vector. More... | |
static implicit | operator InputDirection (FPVector2 direction) |
Casts from normalized FPVector2 into encoded angle. More... | |
static void | Serialize (void *ptr, IDeterministicFrameSerializer serializer) |
Serializes an InputDirection into a FrameSerializer to write or read from a frame snapshot. More... | |
Static Public Attributes | |
const int | SIZE = sizeof(int) |
The size of the component (or struct/type) in-memory inside the Frame data-buffers or stack (when passed as value parameter). Not related to the snapshot payload this occupies, which is bit-packed and compressed. More... | |
Compressed direction (always normalized) to be used as part of input to optimize bandwidth, encoded as an angle using a single byte (2 degrees of accuracy).
|
inlinestatic |
Casts to normalized FPVector2. Defaults to zero-vector.
|
inlinestatic |
Casts from normalized FPVector2 into encoded angle.
|
inlinestatic |
Serializes an InputDirection into a FrameSerializer to write or read from a frame snapshot.
ptr | The pointer to the InputDirection. |
serializer | The FrameSerializer instance into which the struct will be serialized. |
|
inline |
Overrides the hash code generation of this type.
|
static |
The size of the component (or struct/type) in-memory inside the Frame data-buffers or stack (when passed as value parameter). Not related to the snapshot payload this occupies, which is bit-packed and compressed.