}
@Test
public void Vector3ApproxEquals()
{
Vector3 a = new Vector3(1f, 0f, 0f);
Vector3 b = new Vector3(0f, 0f, 0f);
Assert.assertFalse("ApproxEquals failed (1)", a.approxEquals(b, 0.9f));
Assert.assertTrue("ApproxEquals failed (2)", a.approxEquals(b, 1.0f));
a = new Vector3(-1f, 0f, 0f);
b = new Vector3(1f, 0f, 0f);
Assert.assertFalse("ApproxEquals failed (3)", a.approxEquals(b, 1.9f));
Assert.assertTrue("ApproxEquals failed (4)", a.approxEquals(b, 2.0f));
a = new Vector3(0f, -1f, 0f);
b = new Vector3(0f, -1.1f, 0f);
Assert.assertFalse("ApproxEquals failed (5)", a.approxEquals(b, 0.09f));
Assert.assertTrue("ApproxEquals failed (6)", a.approxEquals(b, 0.11f));
a = new Vector3(0f, 0f, 0.00001f);
b = new Vector3(0f, 0f, 0f);
Assert.assertFalse("ApproxEquals failed (6)", b.approxEquals(a, Float.MIN_VALUE));
Assert.assertTrue("ApproxEquals failed (7)", b.approxEquals(a, 0.0001f));
}