No library that I know of, but drawing tangents (and therefore, perpendiculars) is straight-forward: https://tex.stackexchange.com/a/108060/323 Circumcircle, orthocenter, etc... are you thinking of triangles or general polynomails?