[][src]Struct poisson::Generator

pub struct Generator<F, V, R, A> where
    F: Float,
    V: Vector<F>,
    R: Rng,
    A: Creator<F, V>, 
{ /* fields omitted */ }

Generates poisson-disk distribution in [0, 1]d area.

Methods

impl<F, V, R, A> Generator<F, V, R, A> where
    F: Float,
    V: Vector<F>,
    R: Rng,
    A: Creator<F, V>, 
[src]

pub fn set_radius(&mut self, radius: F)[src]

Sets the radius of the generator.

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

Returns the radius of the generator.

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

Returns the type of the generator.

impl<F, V, R, A> Generator<F, V, R, A> where
    F: Float,
    V: Vector<F>,
    R: Rng + Clone,
    A: Creator<F, V>, 
[src]

pub fn generate(&self) -> Vec<V>[src]

Generates Poisson-disk distribution.

Trait Implementations

impl<F: Clone, V: Clone, R: Clone, A: Clone> Clone for Generator<F, V, R, A> where
    F: Float,
    V: Vector<F>,
    R: Rng,
    A: Creator<F, V>, 
[src]

impl<F, V, R, A> IntoIterator for Generator<F, V, R, A> where
    F: Float,
    V: Vector<F>,
    R: Rng,
    A: Creator<F, V>, 
[src]

type IntoIter = PoissonIter<F, V, R, A::Algo>

Which kind of iterator are we turning this into?

type Item = V

The type of the elements being iterated over.

impl<F: Debug, V: Debug, R: Debug, A: Debug> Debug for Generator<F, V, R, A> where
    F: Float,
    V: Vector<F>,
    R: Rng,
    A: Creator<F, V>, 
[src]

Auto Trait Implementations

impl<F, V, R, A> Send for Generator<F, V, R, A> where
    A: Send,
    F: Send,
    R: Send,
    V: Send

impl<F, V, R, A> Unpin for Generator<F, V, R, A> where
    A: Unpin,
    F: Unpin,
    R: Unpin,
    V: Unpin

impl<F, V, R, A> Sync for Generator<F, V, R, A> where
    A: Sync,
    F: Sync,
    R: Sync,
    V: Sync

impl<F, V, R, A> UnwindSafe for Generator<F, V, R, A> where
    A: UnwindSafe,
    F: UnwindSafe,
    R: UnwindSafe,
    V: UnwindSafe

impl<F, V, R, A> RefUnwindSafe for Generator<F, V, R, A> where
    A: RefUnwindSafe,
    F: RefUnwindSafe,
    R: RefUnwindSafe,
    V: RefUnwindSafe

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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<T> From<T> for T[src]

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]