triangles bounding box

Hi,

I want to write a program that draws a triangle and puts a lable in the center of the triangle's surrounding box.
I have the 3 point of the triangle. I do not know how to get the surrounding box, since no side is parallel to the x or y axis.

Thanks for any help.
Last edited on
Maybe finding the slope of a side would help?
Topic archived. No new replies allowed.