Class QuaternionPacker
Inheritance
System.Object
Inherited Members
Show
Syntax
public sealed class QuaternionPacker
Constructors
QuaternionPacker(Int32)
Declaration
public QuaternionPacker(int quaternionBitLength = 10)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | quaternionBitLength | 10 per "smallest 3" is good enough for most people |
Fields
Default9
Default packer using 9 bits per element, 29 bits total
Declaration
public static readonly QuaternionPacker Default9
Default10
Default packer using 10 bits per element, 32 bits total
Declaration
public static readonly QuaternionPacker Default10
Methods
PackAsInt(Quaternion)
Declaration
public static uint PackAsInt(Quaternion value)
Parameters
Type | Name | Description |
---|---|---|
Quaternion | value |
Returns
Type | Description |
---|---|
System.UInt32 |
UnpackFromInt(UInt32)
Declaration
public static Quaternion UnpackFromInt(uint value)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | value |
Returns
Type | Description |
---|---|
Quaternion |
Pack(NetworkWriter, Quaternion)
Declaration
public void Pack(NetworkWriter writer, Quaternion value)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkWriter | writer | |
Quaternion | value |
Pack(Quaternion)
Declaration
public ulong Pack(Quaternion value)
Parameters
Type | Name | Description |
---|---|---|
Quaternion | value |
Returns
Type | Description |
---|---|
System.UInt64 |
Unpack(NetworkReader)
Declaration
public Quaternion Unpack(NetworkReader reader)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkReader | reader |
Returns
Type | Description |
---|---|
Quaternion |
Unpack(UInt64)
Declaration
public Quaternion Unpack(ulong combine)
Parameters
Type | Name | Description |
---|---|---|
System.UInt64 | combine |
Returns
Type | Description |
---|---|
Quaternion |