pub fn vec3_to_spherical(v: &Vec3) -> (Real, Real, Real)
Convert a Cartesian Vec3 to spherical coordinates (r, theta, phi).
Vec3
(r, theta, phi)
r ≥ 0, theta ∈ [0, π] (polar/colatitude), phi ∈ (-π, π] (azimuth).
r
theta ∈ [0, π]
phi ∈ (-π, π]