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+
टिप्पणियाँ
एक टिप्पणी भेजें