fn sample<R: Rng + ?Sized>(&self, r: &mut R) -> Orthographic3<T> {
        use crate::base::helper;
        let left = r.gen();
        let right = helper::reject_rand(r, |x: &T| *x > left);
        let bottom = r.gen();
        let top = helper::reject_rand(r, |x: &T| *x > bottom);
        let znear = r.gen();
        let zfar = helper::reject_rand(r, |x: &T| *x > znear);

        Orthographic3::new(left, right, bottom, top, znear, zfar)
    }
/// Generate an arbitrary random variate for testing purposes.
Generate an arbitrary random variate for testing purposes.
Generate an arbitrary random variate for testing purposes .
fn sample<R: Rng + ?Sized>(&self, r: &mut R) -> Orthographic3<T> {
        use crate::base::helper;
        let left = r.gen();
        let right = helper::reject_rand(r, |x: &T| *x > left);
        let bottom = r.gen();
        let top = helper::reject_rand(r, |x: &T| *x > bottom);
        let znear = r.gen();
        let zfar = helper::reject_rand(r, |x: &T| *x > znear);
        Orthographic3::new(left, right, bottom, top, znear, zfar)
    }
fn sample < R : Rng + ? Sized > ( & self , r : & mut R ) -> Orthographic3 < T > { use crate :: base :: helper ; let left = r . gen ( ) ; let right = helper :: reject_rand ( r , | x : & T | * x > left ) ; let bottom = r . gen ( ) ; let top = helper :: reject_rand ( r , | x : & T | * x > bottom ) ; let znear = r . gen ( ) ; let zfar = helper :: reject_rand ( r , | x : & T | * x > znear ) ; Orthographic3 :: new ( left , right , bottom , top , znear , zfar ) }
Generate an arbitrary random variate for testing purposes.
Generate an arbitrary random variate for testing purposes .
&self
r
&mut R
&self
r
&mut R