pub enum Spread {
None,
Cone {
angle: Value,
concentration: Value,
},
Ellipse {
x: Value,
y: Value,
concentration: Value,
},
Rectangle {
x: Value,
y: Value,
concentration: Value,
},
}Expand description
How a particle’s first heading is scattered.
Variants§
None
Not at all.
Cone
Inside a cone of half-angle angle (degrees); concentration 0 spreads uniformly over the cone’s area, 1 puts every
particle on the axis and -1 on the cone’s edge.
Ellipse
Inside an elliptical cone of half-angles x and y.
Rectangle
Inside a rectangular cone of half-angles x and y.
Trait Implementations§
impl StructuralPartialEq for Spread
Auto Trait Implementations§
impl Forget for Spread
impl Freeze for Spread
impl RefUnwindSafe for Spread
impl Send for Spread
impl Sync for Spread
impl Unpin for Spread
impl UnsafeUnpin for Spread
impl UnwindSafe for Spread
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