Hi,
I'm trying to calculate the moment of inertia (moi) about the center of mass of a triangle (z-axis) in any orientation. I don't want to waste memory trying to find the base and then the altiltude from the top point etc.. as described in the link:
http://lab.polygonal.de/2006/08/17/calc ... x-polygon/
the function is going to be expensive enough as it is but this is the best info I've found so far.
What I'm actually trying to do is write a function that will calculate the moi of any polygon.
Assume I already have the area, and center of mass (all objects have a density of 1 mass unit/ volume unit).
Can someone help a brotha out?