\sigh This is a long one. Time to play with graphing programs.

So you have three sets of linear equations for each vertex of the triangle. Each solution for each on is

So take the midpoint of

and

which is

. Now take the distance between the midpoint and two endpoints, and multiply the two distances and divide by two to get the answer.

I have to go soon so someone can finish it up.