The centroid of a triangle can be calculated with this formula:
The centroid is the average point among the three vertex of a triangle, it's a point formed by the triple interception of all medians of a triangle, the centroid is also called the barycenter or center of mass.
So, replacing all three points into the formula, we have: