[][src]Struct poisson2d::PoissonIter

pub struct PoissonIter<R, A> where
    R: Rng,
    A: Algorithm
{ /* fields omitted */ }

Iterator for generating a Poisson disk sampling.

Implementations

impl<R, A> PoissonIter<R, A> where
    R: Rng,
    A: Algorithm
[src]

pub fn radius(&self) -> f32[src]

Returns the radius of the generator.

pub fn poisson_type(&self) -> Type[src]

Returns the type of the generator.

pub fn restrict(&mut self, value: Vector2<f32>)[src]

Restricts the poisson algorithm with arbitrary sample.

Checks legality of sample for current distribution.

Trait Implementations

impl<R: Clone, A: Clone> Clone for PoissonIter<R, A> where
    R: Rng,
    A: Algorithm
[src]

impl<R, A> Iterator for PoissonIter<R, A> where
    R: Rng,
    A: Algorithm
[src]

type Item = Vector2<f32>

The type of the elements being iterated over.

Auto Trait Implementations

impl<R, A> RefUnwindSafe for PoissonIter<R, A> where
    A: RefUnwindSafe,
    R: RefUnwindSafe

impl<R, A> Send for PoissonIter<R, A> where
    A: Send,
    R: Send

impl<R, A> Sync for PoissonIter<R, A> where
    A: Sync,
    R: Sync

impl<R, A> Unpin for PoissonIter<R, A> where
    A: Unpin,
    R: Unpin

impl<R, A> UnwindSafe for PoissonIter<R, A> where
    A: UnwindSafe,
    R: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<I> IteratorRandom for I where
    I: Iterator
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,