internal static ushort convert(float f) { return(HalfTypeHelper.convert(new HalfTypeHelper.uif() { f = f }.i)); }
private static uint PackHelper(float vectorX, float vectorY) { uint num2 = HalfTypeHelper.convert(vectorX); uint num = (uint)(HalfTypeHelper.convert(vectorY) << 0x10); return(num2 | num); }
public Vector2 ToVector2() { Vector2 vector2; vector2.X = HalfTypeHelper.convert((ushort)this.packedValue); vector2.Y = HalfTypeHelper.convert((ushort)(this.packedValue >> 16)); return(vector2); }
public Vector2 ToVector2() { Vector2 vector; vector.X = HalfTypeHelper.convert((ushort)this.packedValue); vector.Y = HalfTypeHelper.convert((ushort)(this.packedValue >> 0x10)); return(vector); }
private static uint PackHelper(float vectorX, float vectorY) { return((uint)HalfTypeHelper.convert(vectorX) | (uint)HalfTypeHelper.convert(vectorY) << 16); }
void IPackedVector.PackFromVector4(Vector4 vector) { this.packedValue = HalfTypeHelper.convert(vector.X); }
public float ToSingle() { return(HalfTypeHelper.convert(this.packedValue)); }
public HalfSingle(float single) { this.packedValue = HalfTypeHelper.convert(single); }