Example #1
0
def test_fibo_spheres_outside():
    assert in_sphere(fibonacci_spheres(P, V)[0],
                     sphere_vol_to_r(V - eps)) == False
Example #2
0
def test_fibo_spheres_inside():

    assert in_sphere(fibonacci_spheres(P, V)[0], sphere_vol_to_r(V + eps))
Example #3
0
def test_points_in_sphere():
    assert in_sphere(fibonacci_spheres(1, 100)[0], 1) == False