pub fn sin_theta(w: &Vector3f) -> Float
Utility function to calculate sine via spherical coordinates.