備忘錄_20160105(定位) 修改 回首頁

程式 2017-12-17 20:26:54 1513513614 100
Bezier Curve 貝氏曲線

Bezier Curve 貝氏曲線
參考網址 https://javascript.info/bezier-curve

We can rewrite them coordinate-by-coordinate, for instance the 3-point curve:

x = (1−t)2x1 + 2(1−t)tx2 + t2x3

y = (1−t)2y1 + 2(1−t)ty2 + t2y3

t from 0 to 1