How to divide a square into two triangles with a line by eliminating an angle

How to divide a square into two triangles with a line by eliminating an angle

For the convenience of Description: let l cut off a corner of the square, and M divide the rest into two triangles. 1. If l passes through two vertices of the square, then the rest is a triangle. 2. If l passes through one vertex of the square, then the rest is a trapezoid. 3. If l passes through two edges of the square, then m does not exist