Esempio n. 1
0
        public static VuVector ReadS_8S(this BinaryReader br)
        {
            var s = new VuFloat {
                Packed = unchecked ((uint)br.ReadSByte())
            };

            return(new VuVector
            {
                X = s,
                Y = s,
                Z = s,
                W = s
            });
        }
Esempio n. 2
0
        public static VuVector ReadS_16U(this BinaryReader br)
        {
            var s = new VuFloat {
                Packed = (uint)br.ReadUInt16()
            };

            return(new VuVector
            {
                X = s,
                Y = s,
                Z = s,
                W = s
            });
        }
Esempio n. 3
0
        public static VuVector ReadS_32(this BinaryReader br)
        {
            var s = new VuFloat {
                Packed = br.ReadUInt32()
            };

            return(new VuVector
            {
                X = s,
                Y = s,
                Z = s,
                W = s
            });
        }
Esempio n. 4
0
        public static VuVector ReadV2_8S(this BinaryReader br)
        {
            var x = new VuFloat {
                Packed = unchecked ((uint)br.ReadSByte())
            };
            var y = new VuFloat {
                Packed = unchecked ((uint)br.ReadSByte())
            };

            return(new VuVector
            {
                X = x,
                Y = y,
                Z = x,
                W = y
            });
        }
Esempio n. 5
0
        public static VuVector ReadV2_16U(this BinaryReader br)
        {
            var x = new VuFloat {
                Packed = br.ReadUInt16()
            };
            var y = new VuFloat {
                Packed = br.ReadUInt16()
            };

            return(new VuVector
            {
                X = x,
                Y = y,
                Z = x,
                W = y
            });
        }