Function nphysics3d::volumetric::convex_mesh_volume_and_center_of_mass [] [src]

pub unsafe fn convex_mesh_volume_and_center_of_mass<P>(convex_mesh: &TriMesh<P>) -> (P::Vect::Scalar, P) where P: Point

The volume and center of mass of a convex mesh.

This is unsafe as the mesh is not checked to be actually convex.