Struct HalfVector4
Implements
Inherited Members
Namespace: Unity.Netcode.Components
Assembly: solution.dll
Syntax
public struct HalfVector4 : INetworkSerializable
Constructors
Name | Description |
---|---|
HalfVector4(float, float, float, float) | Constructor |
HalfVector4(Vector4) | Constructor |
Fields
Name | Description |
---|---|
Axis | Used to store the half float precision values as a half4 |
Properties
Name | Description |
---|---|
W | The half float precision value of the w-axis as a half. |
X | The half float precision value of the x-axis as a half. |
Y | The half float precision value of the y-axis as a half. |
Z | The half float precision value of the z-axis as a half. |
Methods
Name | Description |
---|---|
NetworkSerialize<T>(BufferSerializer<T>) | The serialization implementation of INetworkSerializable. |
ToQuaternion() | Converts this instance to a full precision Quaternion. |
ToVector4() | Converts this instance to a full precision Vector4. |
UpdateFrom(ref Quaternion) | Converts a full precision Vector4 to half precision and updates the current instance. |
UpdateFrom(ref Vector4) | Converts a full precision Vector4 to half precision and updates the current instance. |