示例#1
0
 internal static ushort convert(float f)
 {
     return(HalfTypeHelper.convert(new HalfTypeHelper.uif()
     {
         f = f
     }.i));
 }
示例#2
0
        private static uint PackHelper(float vectorX, float vectorY)
        {
            uint num2 = HalfTypeHelper.convert(vectorX);
            uint num  = (uint)(HalfTypeHelper.convert(vectorY) << 0x10);

            return(num2 | num);
        }
示例#3
0
        public Vector2 ToVector2()
        {
            Vector2 vector2;

            vector2.X = HalfTypeHelper.convert((ushort)this.packedValue);
            vector2.Y = HalfTypeHelper.convert((ushort)(this.packedValue >> 16));
            return(vector2);
        }
示例#4
0
        public Vector2 ToVector2()
        {
            Vector2 vector;

            vector.X = HalfTypeHelper.convert((ushort)this.packedValue);
            vector.Y = HalfTypeHelper.convert((ushort)(this.packedValue >> 0x10));
            return(vector);
        }
示例#5
0
 private static uint PackHelper(float vectorX, float vectorY)
 {
     return((uint)HalfTypeHelper.convert(vectorX) | (uint)HalfTypeHelper.convert(vectorY) << 16);
 }
示例#6
0
 void IPackedVector.PackFromVector4(Vector4 vector)
 {
     this.packedValue = HalfTypeHelper.convert(vector.X);
 }
示例#7
0
 public float ToSingle()
 {
     return(HalfTypeHelper.convert(this.packedValue));
 }
示例#8
0
 public HalfSingle(float single)
 {
     this.packedValue = HalfTypeHelper.convert(single);
 }