pub struct ParticleMotion {
pub drag: f32,
pub rotation: f32,
pub angular_velocity: f32,
}Fields§
§drag: f32Linear drag coefficient in inverse seconds; exact constant-force solution.
rotation: f32§angular_velocity: f32Implementations§
Source§impl ParticleMotion
impl ParticleMotion
pub fn validate(&self) -> Result<(), ParticleError>
Trait Implementations§
Source§impl Clone for ParticleMotion
impl Clone for ParticleMotion
Source§fn clone(&self) -> ParticleMotion
fn clone(&self) -> ParticleMotion
Returns a duplicate of the value. Read more
1.0.0 · 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 ParticleMotion
impl Debug for ParticleMotion
Source§impl Default for ParticleMotion
impl Default for ParticleMotion
Source§fn default() -> ParticleMotion
fn default() -> ParticleMotion
Returns the “default value” for a type. Read more
Source§impl PartialEq for ParticleMotion
impl PartialEq for ParticleMotion
impl Copy for ParticleMotion
impl StructuralPartialEq for ParticleMotion
Auto Trait Implementations§
impl Freeze for ParticleMotion
impl RefUnwindSafe for ParticleMotion
impl Send for ParticleMotion
impl Sync for ParticleMotion
impl Unpin for ParticleMotion
impl UnwindSafe for ParticleMotion
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