pub struct SizeOverLife {
pub birth_size: f32,
pub death_size: f32,
pub max_life: f32,
}Expand description
Modulates a particle’s size along its lifetime via a simple quadratic curve.
Fields§
§birth_size: f32Size at birth.
death_size: f32Size at death.
max_life: f32Maximum lifetime (normalisation factor).
Implementations§
Source§impl SizeOverLife
impl SizeOverLife
Trait Implementations§
Source§impl Clone for SizeOverLife
impl Clone for SizeOverLife
Source§fn clone(&self) -> SizeOverLife
fn clone(&self) -> SizeOverLife
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SizeOverLife
impl Debug for SizeOverLife
impl Copy for SizeOverLife
Auto Trait Implementations§
impl Freeze for SizeOverLife
impl RefUnwindSafe for SizeOverLife
impl Send for SizeOverLife
impl Sync for SizeOverLife
impl Unpin for SizeOverLife
impl UnsafeUnpin for SizeOverLife
impl UnwindSafe for SizeOverLife
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more