Skip to main content

Module sphere

Module sphere 

Source
Expand description

Sphere shape.

Structs§

Sphere
A sphere defined by its radius.

Functions§

minimum_enclosing_sphere
Minimum enclosing sphere using Welzl’s algorithm (randomised).
random_points_on_sphere
Generate n uniformly distributed random points on the unit sphere surface. Uses rejection sampling. seed is an LCG seed.
sphere_obb_penetration
Sphere-OBB penetration depth.
sphere_sphere_intersection_volume
Sphere-sphere intersection volume (lens volume).
spherical_harmonic
Compute real spherical harmonics coefficient Y_l^m(theta, phi). Only l = 0, 1, 2 implemented.