Trait rhusics::physics::Volume [] [src]

pub trait Volume<S, I> {
    fn get_mass(&self, material: &Material) -> Mass<S, I>;
}

Describe a shape with volume

Type parameters:

  • I: Inertia type, see Inertia for more information

Required Methods

Compute the mass of the shape based on its material

Implementations on Foreign Types

impl<S> Volume<S, S> for Primitive2<S> where
    S: BaseFloat + Inertia
[src]

[src]

impl<S> Volume<S, Matrix3<S>> for Capsule<S> where
    S: BaseFloat
[src]

[src]

impl<S> Volume<S, Matrix3<S>> for Cylinder<S> where
    S: BaseFloat
[src]

[src]

impl<S> Volume<S, Matrix3<S>> for Primitive3<S> where
    S: BaseFloat
[src]

[src]

Implementors