Triangle3D t = new Triangle3D(a, b, c);
assertTrue(a.equalsWithTolerance(t.fromBarycentric(t.toBarycentric(a)),
0.01f));
assertTrue(b.equalsWithTolerance(t.fromBarycentric(t.toBarycentric(b)),
0.01f));
assertTrue(c.equalsWithTolerance(t.fromBarycentric(t.toBarycentric(c)),
0.01f));
}
public void testCentroid() {
Vec3D a = new Vec3D(100, 0, 0);