Computer Science, asked by vinodsarthi050, 11 months ago

Clip the lines segment p(70,20) to Q(100,10) against a window having lower left corner (50,10) and upper right corner(80,40) using the visible portion of the line segment

Answers

Answered by priyaag2102
0

Using the visible portion of the line segment the answer is given below:

Explanation:

Using mid-point sub-division algorithm:

The visual portion of  line segment joining a line P ( -10,20 ) and Q ( 50,10 ).

We have ,

  A = ( 0,0 )

  B = ( 40,0 )

  C = ( 40,40 )

  D = ( 0,40 )

There is a line have starting point P and ending point Q as a mid point.

 E1 = { ( -10 + 50 ) / 2   .   ( 20 + 100 / 2 ) }

E1 = ( 20,15 )

For the line PE1:

Starting point                   End point                      Mid point  

( -10,20 )                             ( 50,10 )                          ( 20,15 )

( -10,20  )                            ( 20,15 )                          ( 5, 17.5 )

( -10,20 )                             ( 5,17 )                             ( 2.5 , 18.5 )

( -10,20  )                            ( 2,18 )                             ( 4,19 )  

( -10,20  )                            ( 4,19 )                             ( 3, 19.5 )

For the line QE1:

Starting point                    End point                    Mid point  

( 20, 15 )                               ( 50,10 )                     ( 35, 12.5 )

( 20, 15 )                              ( 35,12 )                      ( 27.5 , 13.5 )

( 20, 15 )                              ( 27,13 )                       ( 23.5 ,14 )

( 20, 15 )                              ( 23,14 )                       ( 21.5 , 14.5 )

( 20, 15 )                              ( 21,14 )                        ( 20.5 , 14.5 )

Know more :

Find the ratio in which the line segment joining the points A(3,-6) and B(5,3) is divided by x axis.

https://brainly.in/question/2724702

Three circles each of radius 3.5 cm are drawn in such a way that each of them touches the other two. Find the area enclosed between these three circle.

https://brainly.in/question/1134797

Similar questions