[][src]Trait linear_sim::object::Inertial

pub trait Inertial: Temporal {
    fn mass(&self) -> &Mass;
fn mass_mut(&mut self) -> &mut Mass; fn momentum(&self) -> Vector3<f64> { ... }
fn compute_acceleration(&self) -> Vector3<f64> { ... }
fn compute_acceleration_inplace(&mut self) { ... } }

Inertial object

Required methods

fn mass(&self) -> &Mass

fn mass_mut(&mut self) -> &mut Mass

Loading content...

Provided methods

fn momentum(&self) -> Vector3<f64>

fn compute_acceleration(&self) -> Vector3<f64>

Computes acceleration from the current force vector and mass value

fn compute_acceleration_inplace(&mut self)

Computes acceleration from the current force vector and mass value, replacing the current acceleration value

Loading content...

Implementors

impl Inertial for Dynamic[src]

fn momentum(&self) -> Vector3<f64>[src]

fn compute_acceleration(&self) -> Vector3<f64>[src]

fn compute_acceleration_inplace(&mut self)[src]

impl Inertial for Nodetect[src]

fn momentum(&self) -> Vector3<f64>[src]

fn compute_acceleration(&self) -> Vector3<f64>[src]

fn compute_acceleration_inplace(&mut self)[src]

Loading content...