[][src]Trait nphysics3d::volumetric::Volumetric

pub trait Volumetric<N: RealField> {
    pub fn area(&self) -> N;
pub fn volume(&self) -> N;
pub fn center_of_mass(&self) -> Point<N>;
pub fn unit_angular_inertia(&self) -> AngularInertia<N>; pub fn mass(&self, density: N) -> N { ... }
pub fn angular_inertia(&self, mass: N) -> AngularInertia<N> { ... }
pub fn mass_properties(
        &self,
        density: N
    ) -> (N, Point<N>, AngularInertia<N>) { ... }
pub fn transformed_mass_properties(
        &self,
        density: N,
        pos: &Isometry<N>
    ) -> (Point<N>, Inertia<N>) { ... }
pub fn inertia(&self, density: N) -> Inertia<N> { ... } }

Trait implemented by objects which have a mass, a center of mass, and an inertia tensor.

Required methods

pub fn area(&self) -> N[src]

Computes the area of this object.

pub fn volume(&self) -> N[src]

Computes the volume of this object.

pub fn center_of_mass(&self) -> Point<N>[src]

Computes the center of mass of this object.

pub fn unit_angular_inertia(&self) -> AngularInertia<N>[src]

Computes the angular inertia tensor of this object.

Loading content...

Provided methods

pub fn mass(&self, density: N) -> N[src]

Given its density, this computes the mass of this object.

pub fn angular_inertia(&self, mass: N) -> AngularInertia<N>[src]

Given its mass, this computes the angular inertia of this object.

pub fn mass_properties(&self, density: N) -> (N, Point<N>, AngularInertia<N>)[src]

Given its density, this computes the mass, center of mass, and inertia tensor of this object.

pub fn transformed_mass_properties(
    &self,
    density: N,
    pos: &Isometry<N>
) -> (Point<N>, Inertia<N>)
[src]

Given its density and position, this computes the mass, transformed center of mass, and transformed inertia tensor of this object.

pub fn inertia(&self, density: N) -> Inertia<N>[src]

Loading content...

Implementations on Foreign Types

impl<N: RealField> Volumetric<N> for Ball<N>[src]

impl<N: RealField> Volumetric<N> for Capsule<N>[src]

impl<N: RealField> Volumetric<N> for Compound<N>[src]

pub fn mass_properties(&self, density: N) -> (N, Point<N>, AngularInertia<N>)[src]

The mass properties of this CompoundData.

If density is not zero, it will be multiplied with the density of every object of the compound shape.

impl<N: RealField> Volumetric<N> for ConvexHull<N>[src]

impl<N: RealField> Volumetric<N> for Cuboid<N>[src]

impl<N: RealField> Volumetric<N> for dyn Shape<N>[src]

Loading content...

Implementors

Loading content...