public void ClampToZero() { Matrix44D m = new Matrix44D(0.0000000000001); m.ClampToZero(); Assert.AreEqual(new Matrix44D(), m); m = new Matrix44D(0.1); m.ClampToZero(); Assert.AreEqual(new Matrix44D(0.1), m); m = new Matrix44D(0.001); m.ClampToZero(0.01); Assert.AreEqual(new Matrix44D(), m); m = new Matrix44D(0.1); m.ClampToZero(0.01); Assert.AreEqual(new Matrix44D(0.1), m); }