TeStereo report
IterativeVerifier BooleanVerifier InternalCallVerifier EqualityVerifier HybridVerifier
@Test public void testFullSphere(){
SphericalPolygonsSet full=new SphericalPolygonsSet(1.0e-10);
UnitSphereRandomVectorGenerator random=new UnitSphereRandomVectorGenerator(3,new Well1024a(0x852fd2a0ed8d2f6dl));
for (int i=0; i < 1000; ++i) {
Vector3D v=new Vector3D(random.nextVector());
Assert.assertEquals(Location.INSIDE,full.checkPoint(new S2Point(v)));
}
Assert.assertEquals(4 * FastMath.PI,new SphericalPolygonsSet(0.01,new S2Point[0]).getSize(),1.0e-10);
Assert.assertEquals(0,new SphericalPolygonsSet(0.01,new S2Point[0]).getBoundarySize(),1.0e-10);
Assert.assertEquals(0,full.getBoundaryLoops().size());
Assert.assertTrue(full.getEnclosingCap().getRadius() > 0);
Assert.assertTrue(Double.isInfinite(full.getEnclosingCap().getRadius()));
}