Trait rhusics::physics::prelude2d::Volume
[−]
[src]
pub trait Volume<S, I> { fn get_mass(&self, material: &Material) -> Mass<S, I>; }
Required Methods
fn get_mass(&self, material: &Material) -> Mass<S, I>
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]
S: BaseFloat + Inertia,
impl<S> Volume<S, Matrix3<S>> for Capsule<S> where
S: BaseFloat,
[src]
S: BaseFloat,
impl<S> Volume<S, Matrix3<S>> for Cylinder<S> where
S: BaseFloat,
[src]
S: BaseFloat,
impl<S> Volume<S, Matrix3<S>> for Primitive3<S> where
S: BaseFloat,
[src]
S: BaseFloat,
Implementors
impl<S> Volume<S, S> for Circle<S> where
S: BaseFloat + Inertia,impl<S> Volume<S, S> for Rectangle<S> where
S: BaseFloat + Inertia,impl<S> Volume<S, S> for ConvexPolygon<S> where
S: BaseFloat + Inertia,impl<S> Volume<S, Matrix3<S>> for Sphere<S> where
S: BaseFloat,impl<S> Volume<S, Matrix3<S>> for Cuboid<S> where
S: BaseFloat,impl<S> Volume<S, Matrix3<S>> for ConvexPolyhedron<S> where
S: BaseFloat,impl<S, P, T, B, Y> Volume<S, S> for CollisionShape<P, T, B, Y> where
S: BaseFloat + Inertia,
P: Volume<S, S> + Primitive<Point = Point2<S>> + ComputeBound<B>,
B: Bound<Point = Point2<S>> + Clone + Union<B, Output = B>,
T: Transform<Point2<S>>,
Y: Default,impl<S, P, T, B, Y> Volume<S, Matrix3<S>> for CollisionShape<P, T, B, Y> where
S: BaseFloat,
P: Volume<S, Matrix3<S>> + Primitive<Point = Point3<S>> + ComputeBound<B>,
B: Bound<Point = Point3<S>> + Clone + Union<B, Output = B>,
T: Transform<Point3<S>>,
Y: Default,