GJK gjk = new GJK();
// when the distance between objects becomes close to zero,
// the gjk algorithm gegenerates and produces less acurate results.
// therefore we use more iterations here
gjk.run(s1,s2,p1,p2,Double.POSITIVE_INFINITY, epsilon, 2256);
// we want the expected distance
assertTrue( Math.abs( p1.sub(p2).norm() - expected ) < epsilon );
}
}