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); }
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; }
internal PointF toPF(Matrix3D mx) { var mul = mx * this; return(mul.toPF()); }
internal PointF toPF(Matrix3D mx) { var mul = mx * this; return mul.toPF(); }