Skip to main content

Class QuaternionPacker

Inheritance
System.Object
Inherited Members
Show
Syntax
public sealed class QuaternionPacker

Constructors

QuaternionPacker(Int32)

Declaration
public QuaternionPacker(int quaternionBitLength = 10)
Parameters
TypeNameDescription
System.Int32quaternionBitLength10 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
TypeNameDescription
Quaternionvalue
Returns
TypeDescription
System.UInt32

UnpackFromInt(UInt32)

Declaration
public static Quaternion UnpackFromInt(uint value)
Parameters
TypeNameDescription
System.UInt32value
Returns
TypeDescription
Quaternion

Pack(NetworkWriter, Quaternion)

Declaration
public void Pack(NetworkWriter writer, Quaternion value)
Parameters
TypeNameDescription
Mirage.Serialization.NetworkWriterwriter
Quaternionvalue

Pack(Quaternion)

Declaration
public ulong Pack(Quaternion value)
Parameters
TypeNameDescription
Quaternionvalue
Returns
TypeDescription
System.UInt64

Unpack(NetworkReader)

Declaration
public Quaternion Unpack(NetworkReader reader)
Parameters
TypeNameDescription
Mirage.Serialization.NetworkReaderreader
Returns
TypeDescription
Quaternion

Unpack(UInt64)

Declaration
public Quaternion Unpack(ulong combine)
Parameters
TypeNameDescription
System.UInt64combine
Returns
TypeDescription
Quaternion