In Cyrus-Beck algorithm for line clipping the value of t parameter is computed by the relation:
(Here P 1 and P 2 are the two end points of the line, f is a point on the boundary, n 1 is inner normal)
(A) (Pi – fi ). ni / (P2 – P2 ). ni
(B) (fi – Pi ). ni / (P2 – P1 ). ni
(C) (P2 – fi ). ni / (P1 – P2 ). ni
(D) (fi – fi ). P2 / (P1 – P2 ). ni
Answer: (B)
Explanation:
Quiz of this Question
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape,
GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out -
check it out now!