3111 - Centroid of Polygon
Forum rules
Remember that posting AC code is not allowed here. If you are going to ask a question or to post a solution, describe your algorithm instead. Posting AC code will be penalized.
Remember that posting AC code is not allowed here. If you are going to ask a question or to post a solution, describe your algorithm instead. Posting AC code will be penalized.
- ymondelo20
- Posts: 1968
- Joined: 9 years ago
- Location: Universidad de las Ciencias Informáticas
- Gender:

- Contact:
Re: 3111 - Centroid of Polygon
¿la fórmula para calcular el centro de masas no es:
xm = (x1 + x2 + x3 + ... + xn) / n
ym = (y1 + y1 + x3 + ... + yn) / n
?
xm = (x1 + x2 + x3 + ... + xn) / n
ym = (y1 + y1 + x3 + ... + yn) / n
?
teruel
-
humbertodiaz
- Posts: 97
- Joined: 7 years ago
- Gender:

Re: 3111 - Centroid of Polygon
No. Eso funcionaria si el poligono fuese regular. Pero en este caso, es un poligono convexo arbitrario. La formula es media extraña...
