示例#1
0
        public static UMatrix4 product(UMatrix4 m1, UMatrix4 m2)
        {
            UMatrix4 r = default(UMatrix4);

            r.Matrix = Matrix4d.Mult(m1.Matrix, m2.Matrix);
            return(r);
        }
示例#2
0
 public static void Dump(UMatrix4 m, string prefix)
 {
     DOut.p(prefix);
     DOut.pl("{");
     DOut.Indent++;
     DOut.pl(m.M11.ToString() + "," + m.M12.ToString() + "," + m.M13.ToString() + "," + m.M14.ToString());
     DOut.pl(m.M21.ToString() + "," + m.M22.ToString() + "," + m.M23.ToString() + "," + m.M24.ToString());
     DOut.pl(m.M31.ToString() + "," + m.M32.ToString() + "," + m.M33.ToString() + "," + m.M34.ToString());
     DOut.pl(m.M41.ToString() + "," + m.M42.ToString() + "," + m.M43.ToString() + "," + m.M44.ToString());
     DOut.Indent--;
     DOut.pl("}");
 }
示例#3
0
        public static Vector4d product(Vector4d p, UMatrix4 m)
        {
            Vector4d v = Vector4d.Transform(p, m.Matrix);

            return(v);
        }