How to calculate
Calculate the circumcenter O from perpendicular bisectors. The altitude intersection is H = A + B + C − 2O, treating each point as a coordinate pair. In a right triangle, H is the vertex at the right angle.
Worked example
Use Vertex A x 0 · Vertex A y 0 · Vertex B x 3 · Vertex B y 0 · Vertex C x 0 · Vertex C y 4. The result is (0, 0).
Input and result notes
The three vertices must be noncollinear. An obtuse triangle’s orthocenter falls outside it.
OpenStax slope and perpendicular lines