Given a triangle, the medialtriangle connects the midpoints of each side of your original triangle. The medialtriangle is one-fourth of the original, dividing it into 4 similar, equal area triangles. Let's see how this might look for an arbitrary triangle.

Here we can clearly see our medialtriangle (in blue), inside our original triangle.

return