Esempio n. 1
0
 public void TwoByThreeIsSix()
 {
     var m1 = new Matrix3D(2,2,2);
     var m2 = new Matrix3D(3,3,3);
     var mm = m1 * m2;
     Assert.AreEqual(new Matrix3D(6,6,6), mm);
 }
Esempio n. 2
0
 private static bool eq(Matrix3D m1, Matrix3D m2)
 {
     if (Object.ReferenceEquals(m1, null) || Object.ReferenceEquals(m2, null)) return false;
     for (int i = 0; i < 16; ++i)
         if (Math.Abs(m1.v[i] - m2.v[i]) > 0.0000001) return false;
     return true;
 }
Esempio n. 3
0
        internal PointF toPF(Matrix3D mx)
        {
            var mul = mx * this;

            return(mul.toPF());
        }
Esempio n. 4
0
 internal PointF toPF(Matrix3D mx)
 {
     var mul = mx * this;
     return mul.toPF();
 }