コード例 #1
0
 private static ulong Pack(ref Vector2 vector)
 {
     vector = Vector2.Clamp(vector, Vector2.Zero, Vector2.One);
     return((ulong)(
                (uint)FloatHelper.PackFloatToFloat32(vector.X)
                | (((uint)Math.Round(vector.Y * 255F) & 255) << 32)));
 }