[][src]Struct poisson2d::Generator

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

Generates a Poisson disk sampling in a [0, 1)2 area.

Implementations

impl<R, A> Generator<R, A> where
    R: Rng,
    A: Creator
[src]

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

Sets the radius of the generator.

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 generate(self) -> Vec<Vector2<f32>>[src]

Generates a Poisson disk sampling.

Trait Implementations

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

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

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

type Item = Vector2<f32>

The type of the elements being iterated over.

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

Which kind of iterator are we turning this into?

Auto Trait Implementations

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

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

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

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

impl<R, A> UnwindSafe for Generator<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<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>,