Exemplo n.º 1
0
 public static void Write(this BinaryWriter writer, RHMatrix mat)
 {
     writer.Write(mat.m11);
     writer.Write(mat.m12);
     writer.Write(mat.m13);
     writer.Write(mat.m21);
     writer.Write(mat.m22);
     writer.Write(mat.m23);
     writer.Write(mat.m31);
     writer.Write(mat.m32);
     writer.Write(mat.m33);
 }
Exemplo n.º 2
0
        public static RHMatrix ReadRHMatrix(this BinaryReader reader)
        {
            var ret = new RHMatrix();

            ret.m11 = reader.ReadSingle();
            ret.m12 = reader.ReadSingle();
            ret.m13 = reader.ReadSingle();
            ret.m21 = reader.ReadSingle();
            ret.m22 = reader.ReadSingle();
            ret.m23 = reader.ReadSingle();
            ret.m31 = reader.ReadSingle();
            ret.m32 = reader.ReadSingle();
            ret.m33 = reader.ReadSingle();

            return(ret);
        }