Пример #1
0
        private static ushort PackHelper(float vectorX, float vectorY)
        {
            uint num2 = PackUtils.PackSNorm(0xff, vectorX);
            uint num  = PackUtils.PackSNorm(0xff, vectorY) << 8;

            return((ushort)(num2 | num));
        }
Пример #2
0
        private static uint PackHelper(float vectorX, float vectorY)
        {
            uint num2 = PackUtils.PackSNorm(0xffff, vectorX);
            uint num  = PackUtils.PackSNorm(0xffff, vectorY) << 0x10;

            return(num2 | num);
        }
Пример #3
0
        private static uint PackHelper(float vectorX, float vectorY, float vectorZ, float vectorW)
        {
            uint num4 = PackUtils.PackSNorm(0xff, vectorX);
            uint num3 = PackUtils.PackSNorm(0xff, vectorY) << 8;
            uint num2 = PackUtils.PackSNorm(0xff, vectorZ) << 0x10;
            uint num  = PackUtils.PackSNorm(0xff, vectorW) << 0x18;

            return(((num4 | num3) | num2) | num);
        }
Пример #4
0
        private static ulong PackHelper(float vectorX, float vectorY, float vectorZ, float vectorW)
        {
            ulong num4 = PackUtils.PackSNorm(0xffff, vectorX);
            ulong num3 = PackUtils.PackSNorm(0xffff, vectorY) << 0x10;
            ulong num2 = PackUtils.PackSNorm(0xffff, vectorZ) << 0x20;
            ulong num  = PackUtils.PackSNorm(0xffff, vectorW) << 0x30;

            return(((num4 | num3) | num2) | num);
        }