convex_polygon_mass_properties

Function convex_polygon_mass_properties 

Source
pub fn convex_polygon_mass_properties(
    vertices: &[Vec2],
    density: f32,
) -> MassProperties2d
Expand description

Computes the mass properties of a convex polygon defined by its vertices and density.

No checks are performed to ensure the polygon is convex.