#[non_exhaustive]pub enum Hypersphere {
Volume,
Surface,
}Expand description
How PoissonDisk draws candidates around a centre (SciPy’s hypersphere).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Volume
Uniformly in the ball of radius 2r (the default).
Surface
On the sphere of radius 1.001 r, which packs more densely.
Trait Implementations§
Source§impl Clone for Hypersphere
impl Clone for Hypersphere
impl Copy for Hypersphere
Source§impl Debug for Hypersphere
impl Debug for Hypersphere
impl Eq for Hypersphere
Source§impl PartialEq for Hypersphere
impl PartialEq for Hypersphere
impl StructuralPartialEq for Hypersphere
Auto Trait Implementations§
impl Freeze for Hypersphere
impl RefUnwindSafe for Hypersphere
impl Send for Hypersphere
impl Sync for Hypersphere
impl Unpin for Hypersphere
impl UnsafeUnpin for Hypersphere
impl UnwindSafe for Hypersphere
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more