[−][src]Function tray_rust::mc::uniform_sample_cone
pub fn uniform_sample_cone(samples: &(f32, f32), cos_theta_max: f32) -> Vector
Uniformly sample a direction in a cone with max angle cos_theta_max
where
the cone lies along the z-axis