mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -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() {
|
||||
|
||||
function evaluate(that, t, type) {
|
||||
// Calculate the polynomial coefficients. caution: handles are relative
|
||||
// to points
|
||||
|
@ -269,6 +270,7 @@ var Curve = this.Curve = Base.extend({
|
|||
// the x and y coordinates:
|
||||
x = (3 * ax * t + 2 * bx) * t + cx,
|
||||
y = (3 * ay * t + 2 * by) * t + cy;
|
||||
break;
|
||||
}
|
||||
}
|
||||
// The normal is simply the rotated tangent:
|
||||
|
|
Loading…
Reference in a new issue