示例#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
            });
        }
示例#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
            });
        }
示例#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
            });
        }
示例#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
            });
        }
示例#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
            });
        }