Anonymous user
Bitmap/Bézier curves/Cubic: Difference between revisions
m
trivial simplification of power.
mNo edit summary |
m (trivial simplification of power.) |
||
Line 440:
t = real(i) / real(N_SEG)
a = (1.0 - t)**3.0
b = 3.0 * t * (1.0 - t)**2
c = 3.0 * (1.0 - t) * t**2
d = t**3.0
x = a * p1%x + b * p2%x + c * p3%x + d * p4%x
|