title: How can a convex polygon be broken down into right triangles aligned on the X- and Y- axes?
body: <p>Given a convex polygon represented by a set of vertices (we can assume they're in counter-clockwise order), how can this polygon be broken down into a set of right triangles whose legs are aligned with the X- and Y-axes?</p>
  
  <p>Since I probably lack some math terminology, "legs" are what I'm calling those two lines that are <em>not</em> the hypotenuse (apologies in advance if I've stabbed math jargon in the face--brief corrections are extra credit).</p>