When is the orthocenter inside on or outside of the triangle?

Inside: acute angled triangleOn: right angled triangle

Outside: obtuse angled triangle.