[−][src]Struct poisson::Generator
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]
F: Float,
V: Vector<F>,
R: Rng,
A: Creator<F, V>,
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]
F: Float,
V: Vector<F>,
R: Rng + Clone,
A: Creator<F, V>,
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]
F: Float,
V: Vector<F>,
R: Rng,
A: Creator<F, V>,
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]
F: Float,
V: Vector<F>,
R: Rng,
A: Creator<F, V>,
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.
fn into_iter(self) -> Self::IntoIter
[src]
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]
F: Float,
V: Vector<F>,
R: Rng,
A: Creator<F, V>,
Auto Trait Implementations
impl<F, V, R, A> Send for Generator<F, V, R, A> where
A: Send,
F: Send,
R: Send,
V: Send,
A: Send,
F: Send,
R: Send,
V: Send,
impl<F, V, R, A> Sync for Generator<F, V, R, A> where
A: Sync,
F: Sync,
R: Sync,
V: Sync,
A: Sync,
F: Sync,
R: Sync,
V: Sync,
impl<F, V, R, A> Unpin for Generator<F, V, R, A> where
A: Unpin,
F: Unpin,
R: Unpin,
V: Unpin,
A: Unpin,
F: Unpin,
R: Unpin,
V: Unpin,
impl<F, V, R, A> RefUnwindSafe for Generator<F, V, R, A> where
A: RefUnwindSafe,
F: RefUnwindSafe,
R: RefUnwindSafe,
V: RefUnwindSafe,
A: RefUnwindSafe,
F: RefUnwindSafe,
R: RefUnwindSafe,
V: RefUnwindSafe,
impl<F, V, R, A> UnwindSafe for Generator<F, V, R, A> where
A: UnwindSafe,
F: UnwindSafe,
R: UnwindSafe,
V: UnwindSafe,
A: UnwindSafe,
F: UnwindSafe,
R: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
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<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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,