[−][src]Struct poisson2d::Generator
Generates a Poisson disk sampling in a [0, 1)2 area.
Implementations
impl<R, A> Generator<R, A> where
R: Rng,
A: Creator,
[src]
R: Rng,
A: Creator,
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]
R: Rng,
A: Creator,
impl<R: Debug, A: Debug> Debug for Generator<R, A> where
R: Rng,
A: Creator,
[src]
R: Rng,
A: Creator,
impl<R, A> IntoIterator for Generator<R, A> where
R: Rng,
A: Creator,
[src]
R: Rng,
A: Creator,
Auto Trait Implementations
impl<R, A> RefUnwindSafe for Generator<R, A> where
A: RefUnwindSafe,
R: RefUnwindSafe,
A: RefUnwindSafe,
R: RefUnwindSafe,
impl<R, A> Send for Generator<R, A> where
A: Send,
R: Send,
A: Send,
R: Send,
impl<R, A> Sync for Generator<R, A> where
A: Sync,
R: Sync,
A: Sync,
R: Sync,
impl<R, A> Unpin for Generator<R, A> where
A: Unpin,
R: Unpin,
A: Unpin,
R: Unpin,
impl<R, A> UnwindSafe for Generator<R, A> where
A: UnwindSafe,
R: UnwindSafe,
A: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
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?
fn into_iter(self) -> I
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,