[][src]Function pbrt::core::reflection::cos_2_theta

pub fn cos_2_theta(w: &Vector3f) -> Float

Utility function to calculate the square cosine via spherical coordinates.