B
B
Biaci_Anj2021-11-29 03:08:54
Mathematics
Biaci_Anj, 2021-11-29 03:08:54

How can you find the centroid of four points ( Quadrilateral ), knowing the coordinates of these vertices?

I would be very grateful for the formula.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
Wataru, 2021-11-29
@Biaci_Anj

It's well written here .
First you need to triangulate the quadrilateral. Then, the center of mass of each triangle is the arithmetic mean of the coordinates. Further, it remains to find the center of mass of two points - the centers of mass of triangles, where at each point there is a mass equal to the area of ​​the triangle.
For this to work with non-convex polygons, you need to calculate the area of ​​triangles in terms of the cross product of the sides, thus allowing negative areas for triangles outside your figure.
Final formula (in vectors):

C = ((p1+p2+p3)/3*(p1p2*p1p3)+(p3+p4+p1)/3*(p1p3*p1p4))/((p1p2*p1p3)+(p1p3*p1p4))

Here pi is the i-th vertex of the quadrilateral, pipj is the vector between points i and j. pipj*pkpl - vector product of two vectors.

D
dollar, 2021-11-29
@dollar

[ (x 1 +x 2 +x 3 +x 4 )/4 ; (y 1 +y 2 +y 3 +y 4 )/4 ]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question