private bool Approximate(Matrix4x4 v, Matrix4x4d vd) { for (int i = 0; i < 16; i++) { if (Math.Abs(v[i] - vd[i]) > deviation) { Assert.Fail(string.Format("{0}\n{1}", v.ToString("0.00000"), vd.ToString("0.00000"))); return(false); } } return(true); }