Question: how to find the centroid of a triangle formula?
Answer: For more see Centroid of a triangle. The coordinates of the centroid are simply the average of the coordinates of the vertices. So to find the x coordinate of the orthocenter, add up the three vertex x coordinates and divide by three. Repeat for the y coordinate.