nyx_space::mc::helpers

Function unit_vector_from_seed

Source
pub fn unit_vector_from_seed<R: Rng>(rng: &mut R) -> Vector3<f64>
Expand description

Returns a unit vector from a normal distribution. Implements the Sphere Point Picking method: https://mathworld.wolfram.com/SpherePointPicking.html