convex_polygon_mass

Function convex_polygon_mass 

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

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

No checks are performed to ensure the polygon is convex.