/// <summary> /// 48 bits /// </summary> public static void Serialize(this BitStream stream, ref HalfVector3 vec) { stream.Serialize(ref vec.X); stream.Serialize(ref vec.Y); stream.Serialize(ref vec.Z); }
/// <summary> /// 48 bits /// </summary> public static void Write(this BitStream stream, HalfVector3 vec) { stream.WriteUInt16(vec.X); stream.WriteUInt16(vec.Y); stream.WriteUInt16(vec.Z); }
public HalfVector4(HalfVector3 vector3, ushort w) { this.PackedValue = vector3.ToHalfVector4().PackedValue | (ulong)w << 48; }