1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-26 09:44:32 +02:00

bugfix: mismatch formula

the 'second term' interpolation percentages indicator doesn't take the path of 'second term ' curve path.
This commit is contained in:
liang wang
2016-03-03 19:54:52 +08:00
parent 35647adef1
commit 848dd5fd2c

View File

@@ -96,7 +96,7 @@ var Control = React.createClass({
this.drawLerpBox(api, dim, pad, p);
var t = (p.x-pad)/fwh;
this.drawLerpPoint(api, (1-t)*(1-t)*(1-t), pad, fwh, p);
this.drawLerpPoint(api, 2*(1-t)*(1-t)*(t), pad, fwh, p);
this.drawLerpPoint(api, 3*(1-t)*(1-t)*(t), pad, fwh, p);
this.drawLerpPoint(api, 3*(1-t)*(t)*(t), pad, fwh, p);
this.drawLerpPoint(api, (t)*(t)*(t), pad, fwh, p);
}