If we have three masses $m_1,m_2,m_3$ (assuming that are all equal to $1$) located at $r_1,r_2,r_3$ respectively, then the center of mass is at $(1.00,0.83)$. In the Wolfram Documentation page says that the RegionCentroid is known as the center of mass, so if I make a triangle with vertices at $r_1,r_2,r_3$ the RegionCentroid should give me $(1.00,0.83)$ and this is not the case.

where the black arrows are the position vectors of the masses, the red arrow is pointing to the center of mass position (black point) calculated with the formula and the gray point is the RegionCentroid result $(1.15,0.85)$.

If my understanding is correct, the center of mass formula and RegionCentroid should be the same, but clearly this is not happening. What am I missing?

$\begingroup$Ok, I understand now. I thought that making the triangle with Line would work, but is better to use Polygon or Point as you said.$\endgroup$
– VerktajNov 9 '19 at 20:46

$\begingroup$If you do use the Line object, RegionCentroid will calculate the center of mass of a rigid triangle made out of thin uniform-mass rods instead. This might be useful in some circumstance, but it won't be the same as the centroid of the vertices.$\endgroup$
– Michael SeifertNov 10 '19 at 13:49

Mathematica is a registered trademark of Wolfram Research, Inc. While the mark is used herein with the limited permission of Wolfram Research, Stack Exchange and this site disclaim all affiliation therewith.