Explanation : The equation of the line joining (-1, 0) and (4, 5) is x - y + 1 = 0. This cuts the window boundaries x = 0 and y = 3 at the points (0, 1) and (2,3) respectively.
Explanation : A point (x, y) will be inside the window, if 0 < x < 5 and 0 < y < 3. So, the points (1, 1) and (4, 2), both lie within the window. So, it is already clipped