Skip to main content

New answers tagged

10 votes
Accepted

Calculating the moment of inertia of a 2D convex polygon for physics

Disclaimer: Taking the formula as presented in the question as correct and applicable. No attempt is made to address the 'physics' aspect of the OP's concerns. Overview The code is clean and very ...
Fe2O3's user avatar
  • 2,340
9 votes

Calculating the moment of inertia of a 2D convex polygon for physics

Create a struct for shapes struct dvec2 is just a single coordinate, but you are passing shapes around a lot, which involves a ...
G. Sliepen's user avatar
  • 61.7k

Top 50 recent answers are included