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
Quiz of this Question
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.