Function nyx_space::mc::helpers::unit_vector_from_seed[][src]

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