pub enum Shape {
Point,
Disk {
radius: Value,
concentration: Value,
},
Rectangle {
size: [Value; 2],
concentration: Value,
},
Sphere {
radius: Value,
volume: bool,
},
Box {
size: [Value; 3],
volume: bool,
},
Cylinder {
radius: Value,
height: Value,
volume: bool,
axis: Axis,
},
}Expand description
Where in its frame an emitter makes a particle.
Variants§
Point
The frame’s origin.
Disk
A disc in the XY plane; concentration is 0 for uniform over the area, 1 for all at the centre and -1 for all on the
rim.
Rectangle
A rectangle in the XY plane, with the same concentration toward its centre.
Sphere
A sphere’s surface, or its volume.
Box
A box’s surface, or its volume.
Cylinder
A cylinder’s surface, or its volume.
Trait Implementations§
impl StructuralPartialEq for Shape
Auto Trait Implementations§
impl Forget for Shape
impl Freeze for Shape
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnsafeUnpin for Shape
impl UnwindSafe for Shape
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