Liang-Bosky line clipping algorithm

 Lian -Bosky line clipping algorithm


starting point (t=0) and ending point (t=x) base on time interval we can calculate instruction point,

                                                

                             initial point(t=0)                   p(x,y)  t                  final point(t=1)

                                                    A----------------/---------------------B

                                               (x1,y1) (1-t)                                  (x2,y2)

                                         

                                             x=? and y=?  is value of p

                                           x=x2t+(1-t)x1

x=x2t+x1-x1t

x=x1+x2t-x1

x=x1+

टिप्पणियाँ

इस ब्लॉग से लोकप्रिय पोस्ट

Describe the synthesis analysis model of compiler? in compiler designer. or Explain in detail the process of compilation? in compiler designer

difference between restar and vector graphics in computer graphics.com