Question

Based on the Liang-Barsky line clipping algorithm, consider the following line which we need to c...

Based on the Liang-Barsky line clipping algorithm, consider the following line which we need to clip on a rectangular viewport with the corner coordinates as [(10, -20), (202, 130)]. The endpoints of the line are of coordinates (-15, 17) and (42, 144).

a. What is the parametric equation of the line? Write it in the form

( , ) = ( , ) + t1( , ) and
( , ) = ( , ) + t2( , )

where t1 and t2 values are the approximation ratios range within [0,1]

b. What are the coordinates of the new endpoints of the visible segment?

c. What is the disadvantage of Liang-Barsky algorithm to Cohen Sutherland line clipping algorithm.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

please upvote if you like the answer, as it helps the community a lot. Also, if you have any doubt, feel free to ask in comments, we will reach you ASAP.

Solution:

a & b.

0 202 こ -20 = 130 (10-22) Une-Coordinates一(-15217)し(421144) .16 (-15, 17) (F1丶117 2.5 By-127 man 217

17ーキーキ2ネ42725 127 0.4386 11 3 to (-1517) + 0.8898-5711272 ー

c. Disadvantage of Liang Bersky to Cohen-Sutherland:

Cohen-Sutherland can easily be expanded to three dimensions, but this is not the case with Liang Bersky algorithm.

Add a comment
Know the answer?
Add Answer to:
Based on the Liang-Barsky line clipping algorithm, consider the following line which we need to c...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT