pub fn tan_theta(w: &Vector3f) -> Float
Utility function to calculate the tangent via spherical coordinates.