Struct rand::distributions::UnitSphereSurface [−][src]
pub struct UnitSphereSurface;
👎 Deprecated since 0.7.0:
moved to rand_distr crate
Samples uniformly from the surface of the unit sphere in three dimensions.
Implemented via a method by Marsaglia1.
Marsaglia, George (1972). Choosing a Point from the Surface of a Sphere. Ann. Math. Statist. 43, no. 2, 645–646. ↩
Implementations
impl UnitSphereSurface
[src]
impl UnitSphereSurface
[src]pub fn new() -> UnitSphereSurface
[src]
Construct a new UnitSphereSurface
distribution.
Trait Implementations
impl Clone for UnitSphereSurface
[src]
impl Clone for UnitSphereSurface
[src]fn clone(&self) -> UnitSphereSurface
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Distribution<[f64; 3]> for UnitSphereSurface
[src]
impl Distribution<[f64; 3]> for UnitSphereSurface
[src]