Пример #1
0
 private static uint PackHelper(float vectorX, float vectorY)
 {
     return((uint)HalfUtils.Pack(vectorX) | (uint)HalfUtils.Pack(vectorY) << 16);
 }
Пример #2
0
 private static ulong PackHelper(float vectorX, float vectorY, float vectorZ, float vectorW)
 {
     return((ulong)HalfUtils.Pack(vectorX) | (ulong)HalfUtils.Pack(vectorY) << 16 | (ulong)HalfUtils.Pack(vectorZ) << 32 | (ulong)HalfUtils.Pack(vectorW) << 48);
 }