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

pub trait Volumetric<N: Real> {
    fn area(&self) -> N;
fn volume(&self) -> N;
fn center_of_mass(&self) -> Point<N>;
fn unit_angular_inertia(&self) -> AngularInertia<N>; fn mass(&self, density: N) -> N { ... }
fn angular_inertia(&self, mass: N) -> AngularInertia<N> { ... }
fn mass_properties(&self, density: N) -> (N, Point<N>, AngularInertia<N>) { ... }
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

Computes the area of this object.

Computes the volume of this object.

Computes the center of mass of this object.

Computes the angular inertia tensor of this object.

Provided Methods

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

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

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

Implementations on Foreign Types

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

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

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

impl<N: Real> Volumetric<N> for Compound<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: Real> Volumetric<N> for Shape<N>
[src]

Implementors