private static uint PackHelper(float vectorX, float vectorY) { uint num = (uint)HalfUtils.Pack(vectorX); uint num2 = (uint)((uint)HalfUtils.Pack(vectorY) << 16); return(num | num2); }
public Vector2 ToVector2() { Vector2 result; result.X = HalfUtils.Unpack((ushort)this.packedValue); result.Y = HalfUtils.Unpack((ushort)(this.packedValue >> 16)); return(result); }