コード例 #1
0
 /// <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);
 }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 public HalfVector4(HalfVector3 vector3, ushort w)
 {
     this.PackedValue = vector3.ToHalfVector4().PackedValue | (ulong)w << 48;
 }