Пример #1
0
 /// <inheritdoc />
 public Vector4 ToVector4()
 {
     return(new Vector4(
                HalfTypeHelper.Unpack((ushort)this.PackedValue),
                HalfTypeHelper.Unpack((ushort)(this.PackedValue >> 0x10)),
                HalfTypeHelper.Unpack((ushort)(this.PackedValue >> 0x20)),
                HalfTypeHelper.Unpack((ushort)(this.PackedValue >> 0x30))));
 }
Пример #2
0
        public Vector2 ToVector2()
        {
            Vector2 vector;

            vector.X = HalfTypeHelper.Unpack((ushort)this.PackedValue);
            vector.Y = HalfTypeHelper.Unpack((ushort)(this.PackedValue >> 0x10));
            return(vector);
        }
Пример #3
0
 public float ToSingle()
 {
     return(HalfTypeHelper.Unpack(this.PackedValue));
 }