New answers tagged computational-geometry
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 ...
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 ...
Top 50 recent answers are included
Related Tags
computational-geometry × 240python × 79
performance × 62
c++ × 61
algorithm × 58
java × 25
python-3.x × 23
beginner × 21
numpy × 20
c# × 17
programming-challenge × 16
clustering × 15
haskell × 13
time-limit-exceeded × 13
graphics × 12
javascript × 11
collision × 11
c++11 × 10
matrix × 10
python-2.x × 9
c × 8
coordinate-system × 8
mathematics × 7
unit-testing × 6
interview-questions × 6