Computer Science, asked by amishubhi1994, 1 year ago

Difference between liang barsky and cohen sutherland

Answers

Answered by asthakz
0

 \huge \pink {hello \: mate}

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.

The Cohen-Sutherland line clipping algorithm quickly detects and dispenses with two common and trivial cases. To clip a line, we need to consider only its endpoints. If both endpoints of a line lie inside the window, the entire line lies inside the window.

Answered by astha23kz
0

{\huge{\boxed{\mathcal {\blue{HEYAA \: \: MATE}}}}}

Answer:

liang barsky

In computer graphics, the Liang–Barsky algorithm is a line clipping algorithm. 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.

cohen sutherland

The Cohen–Sutherland algorithm is a computer-graphics algorithm used for line clipping. The algorithm divides a two-dimensional space into 9 regions and then efficiently determines the lines and portions of lines that are visible in the central region of interest.

HOPE THIS HELPS

Similar questions