二维情况:
对于线段AB,A(x1,y1)为起点,B(x2,y2)为终点,且AC/AB=t;求线段C(x,y)的坐标。
x = (1-t)*x1+t*x2
y = (1-t)*y1+t*y2
三维情况:
对于线段AB,A(x1,y1,z1)为起点,B(x2,y2,z2)为终点,且AC/AB=t;求线段C(x,y,z)的坐标。
z = (1-t)*z1+t*z2