Triangle's contributory moment of inertia

AI Thread Summary
The discussion focuses on finding an algorithm to calculate the average distance from a point to all points within a triangle, which is essential for a 2D physics engine's rotational inertia calculations. The user seeks a solution that avoids complex calculus and prefers a straightforward algorithm. They mention using a three-point formula for area and a trigonometric method for determining the mass midpoint of triangles, but express a desire for alternatives that are computationally simpler. The goal is to integrate these calculations for solid shapes composed of multiple triangles to accurately compute their center of rotation. The request emphasizes the need for practical solutions in game and simulation design.
Jellyf15h
Messages
4
Reaction score
0
Triangle's contributory moment of inertia :D

Howdy.

I'm designing a 2-dimensional physics engine for use in games and simulations and have hit a roadblock.
The rotation system requires a value corresponding to the proportion between an object's regular inertia and its rotational inertia. EG, for a ring the proportion is 1, for a disc it's .5 evidently. Basically, <THIS> is what I'm after.

Anyway, what I need is an algorithm to find the average distance [not scaled] from a given point (x,y) to all points in the AREA of a triangle [(x1,y1), (x2,y2), (x3,y3)]. To say it differently, I need to find the average distance from all points within a given triangle to (x,y). Being in basic calculus [CURSE YOU PUBLIC EDUCATIONNNN] I'm not so familiar with integrals, so a solved algorithm is what I need.

Just to provide extra perspective, solid shapes will consist of multiple triangles [as it pertains to area, anyway.] and a weighted mean based on area will be used when computing their overall center of rotation and their average distribution. [what we're finding.] I plan to use the three-point formula for area and a trig algorithm to find the mass midpoint of each triangle. [If there's a way to do this without trig, tell me. Those tend to run faster.] There will be no variation in density in a triangle.

So, who among you is man enough to crack this nut?
 
Mathematics news on Phys.org
Please?

Pretty please? I'll be your friend. You'll get in the credits!
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...

Similar threads

Back
Top