Question
Download Solution PDFA 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 _______.
Answer (Detailed Solution Below)
Detailed Solution
Download Solution PDFGiven:
Rectangle is bound by the lines x =0 , y = 0 , x = 5 and y = 3.
We follow the pattern of
Top |
Bottom |
Right |
Left |
Steps:
1) As P lies in the left of window. So region for this will be : 0001
2) Q point lies in the top of the window, So, region for this will be : 1000
3) Logical AND of 0001 AND 1000 = 0000 i.e. line is partially inside the window.
4) Slope of the line PQ = (5-0)/(4-(-1)) = 5/5 = 1
5) Now, we have to find the coordinates of P’ , Slope of P’Q’ is same as slope of PQ.
6) So, we have to find the y coordinate as x coordinate is 0.
(5- y’)/(4-0) = 1 , 5- y’ = 4, y’ = 1
Coordinates of P’ will be (0,1).
7) Next we have to find the coordinates of point Q’. For this , y coordinate we already know. i.e. 3
8) So, (5 - 3)/ (4- x’) = 1 , 2 = 4 – x’ , x’ = 2
Coordinates of point Q’ will be (2,3).
So, The line segment joining (-1, 0) and (4, 5), if clipped against this window will connect the points (0,1 ) and (2, 3).
Last updated on Jun 6, 2025
-> The UGC NET Exam Schedule 2025 for June has been released on its official website.
-> The UGC NET Application Correction Window 2025 is available from 14th May to 15th May 2025.
-> The UGC NET 2025 online application form submission closed on 12th May 2025.
-> The June 2025 Exam will be conducted from 21st June to 30th June 2025
-> The UGC-NET exam takes place for 85 subjects, to determine the eligibility for 'Junior Research Fellowship’ and ‘Assistant Professor’ posts, as well as for PhD. admissions.
-> The exam is conducted bi-annually - in June and December cycles.
-> The exam comprises two papers - Paper I and Paper II. Paper I consists of 50 questions and Paper II consists of 100 questions.
-> The candidates who are preparing for the exam can check the UGC NET Previous Year Papers and UGC NET Test Series to boost their preparations.