To get the center, just find a $`x, y`$ such that $`x - x_c = 0`$ and $`y - y_c = 0`$
## Triangle Centers
## Centroid
The centroid of a triangle is the common intersection of the 3 medians. The centroid is also known as the centre of mass or centre of gravity of an object (where the mass of an object is concentrated).
1. Find the equation of the two median lines. **The median is the line segment from a vertex from a vertex to the midpoint of the opposite side**.
2. Find the point of intersection using elimnation or substitution.
- Alternatively, only for checking your work, let the centroid be the point $`(x, y)`$, and the 3 other points be $`(x_1, y_1), (x_2, y_2), (x_3, y_3)`$ respectively, then the
centroid is simply at $`(\dfrac{x_1 + x_2 + x_3}{3}, \dfrac{y_1+y_2+y_3}{3})`$
## Circumcentre
The circumcentre ($`O`$) of a triangle is the common intersection of the 3 perpendicular bisectors of the sides of a triangle.
1. Find the equation of the perpendicular bisectors of two sides. **A perpendicular (right) bisector is perpendicular to a side of the triangle and passes through the midpoint of that side of the triangle**.
2. Find the point of intersection of the two lines using elimination or substitution.
## Orthocentre
The orthocenter of a triangle is the common intersection of the 3 lines containing the altitudes.
- To calculate each segment of the line given the ratio, the answer is simply
- $`(x_1 + \dfrac{x_2 - x_1}{r}, y_1 + \dfrac{y_2 - y1}{r})`$, where $`r, (x_1,y_1) (x_2,y_2)`$ are the **total** ratio, first point and second point respectively.
- Note that the above is for moving up a line. When moving down, we simply subtract like so:
- For example, from a point like $`(2, 3)`$ to a point ($`5, 6)`$, and having a ratio of $`2:1`$ split at point $`P`$, the coordindates of point $`P`$ is simply