mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Minor code clean-up.
This commit is contained in:
parent
2a0c393b85
commit
c4c5b070b5
1 changed files with 2 additions and 0 deletions
|
@ -212,6 +212,7 @@ var Curve = this.Curve = Base.extend({
|
||||||
+ ' }';
|
+ ' }';
|
||||||
}
|
}
|
||||||
}, new function() {
|
}, new function() {
|
||||||
|
|
||||||
function evaluate(that, t, type) {
|
function evaluate(that, t, type) {
|
||||||
// Calculate the polynomial coefficients. caution: handles are relative
|
// Calculate the polynomial coefficients. caution: handles are relative
|
||||||
// to points
|
// to points
|
||||||
|
@ -269,6 +270,7 @@ var Curve = this.Curve = Base.extend({
|
||||||
// the x and y coordinates:
|
// the x and y coordinates:
|
||||||
x = (3 * ax * t + 2 * bx) * t + cx,
|
x = (3 * ax * t + 2 * bx) * t + cx,
|
||||||
y = (3 * ay * t + 2 * by) * t + cy;
|
y = (3 * ay * t + 2 * by) * t + cy;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// The normal is simply the rotated tangent:
|
// The normal is simply the rotated tangent:
|
||||||
|
|
Loading…
Reference in a new issue