Beispiel #1
0
 public Vector4 ToVector4()
 {
     return(new Vector4(
                FloatHelper.UnpackFloat16ToFloat((ushort)(this.PackedValue & 65535)),
                FloatHelper.UnpackFloat16ToFloat((ushort)((this.PackedValue >> 16) & 65535)),
                FloatHelper.UnpackFloat16ToFloat((ushort)((this.PackedValue >> 32) & 65535)),
                FloatHelper.UnpackFloat16ToFloat((ushort)((this.PackedValue >> 48) & 65535))));
 }
Beispiel #2
0
 public Vector4 ToVector4() => new Vector4(
     FloatHelper.UnpackFloat16ToFloat(this.PackedValue),
     0.0f,
     0.0f,
     1.0f);