diff --git a/src/path/Curve.js b/src/path/Curve.js index 90e95f90..b7c57a95 100644 --- a/src/path/Curve.js +++ b/src/path/Curve.js @@ -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); diff --git a/src/util/Numerical.js b/src/util/Numerical.js index 40b4fb53..144e918b 100644 --- a/src/util/Numerical.js +++ b/src/util/Numerical.js @@ -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;