ScratchData LogoScratchData
Back to dimmat's profile

Liang-Barsky Line Clipping

DIdimmat•Created June 21, 2017
Liang-Barsky Line Clipping
0
0
32 views
View on Scratch

Instructions

The Liang–Barsky algorithm uses the parametric equation of a line and inequalities describing the range of the clipping window to determine the intersections between the line and the clip window. With these intersections it knows which portion of the line should be drawn. This algorithm is significantly more efficient than Cohen–Sutherland. The idea of the Liang–Barsky clipping algorithm is to do as much testing as possible before computing line intersections.

Project Details

Project ID166820820
CreatedJune 21, 2017
Last ModifiedJune 22, 2017
SharedJune 21, 2017
Visibilityvisible
CommentsAllowed