All Exams Test series for 1 year @ ₹349 only
Question

A rectangle is bound by the lines x = 0; y = 0; x = 5 and y = 3. The line segment joining (-1, 0) and (4, 5), if clipped against this window will connect the points _______.

The correct answer is

(0, 1) and (2, 3)

Line equation: The slope is \(\frac{5-0}{4-(-1)}=1\), so y = x + 1.

Window intersections: At the left edge x = 0, y = 1. At the top edge y = 3, x = 2. Both lie on the original segment and within the window, so the clipped segment joins (0, 1) and (2, 3).

Was this answer helpful?
Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App