pub fn sin_phi(w: &Vector3f) -> Float {
    let sin_theta: Float = sin_theta(w);
    if sin_theta == 0.0 as Float {
        0.0 as Float
    } else {
        clamp_t(w.y / sin_theta, -1.0, 1.0)
    }
}
/// Utility function to calculate sine via spherical coordinates.
Utility function to calculate sine via spherical coordinates.
Utility function to calculate sine via spherical coordinates .
pub fn sin_phi(w: &Vector3f) -> Float {
    let sin_theta: Float = sin_theta(w);
    if sin_theta == 0.0 as Float {
        0.0 as Float
    } else {
        clamp_t(w.y / sin_theta, -1.0, 1.0)
    }
}
pub fn sin_phi ( w : & Vector3f ) -> Float { let sin_theta : Float = sin_theta ( w ) ; if sin_theta == 0.0 as Float { 0.0 as Float } else { clamp_t ( w . y / sin_theta , - 1.0 , 1.0 ) } }
Utility function to calculate sine via spherical coordinates.
Utility function to calculate sine via spherical coordinates .
w
&Vector3f