find the two intersection points and the two points for the corners, and then divide it into two triangles. That will make it a lot simpler.