mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Fix comments.
This commit is contained in:
parent
110cffc14c
commit
dad118cc20
2 changed files with 5 additions and 2 deletions
|
@ -257,7 +257,7 @@ var Curve = this.Curve = Base.extend(/** @lends Curve# */{
|
|||
/**
|
||||
* @param {Number} length
|
||||
* @param {Number} [start]
|
||||
* @return {Boolean} {@true the curve is linear}
|
||||
* @return {Number}
|
||||
*/
|
||||
getParameter: function(length, start) {
|
||||
var args = this.getValues();
|
||||
|
@ -265,6 +265,9 @@ var Curve = this.Curve = Base.extend(/** @lends Curve# */{
|
|||
return Curve.getParameter.apply(Curve, args);
|
||||
},
|
||||
|
||||
/**
|
||||
* Private method used in getPoint, getTangent, getNormal.
|
||||
*/
|
||||
_evaluate: function(parameter, type) {
|
||||
var args = this.getValues();
|
||||
args.push(parameter, type);
|
||||
|
|
|
@ -128,7 +128,7 @@ var Numerical = new function() {
|
|||
// If all the coefficients are 0, infinite values are
|
||||
// possible!
|
||||
if (abs(c) < tolerance)
|
||||
return Infinite; // Infinite solutions
|
||||
return Infinity; // Infinite solutions
|
||||
return []; // 0 solutions
|
||||
}
|
||||
var q = b * b - 4 * a * c;
|
||||
|
|
Loading…
Reference in a new issue