Fix comments.

This commit is contained in:
Jürg Lehni 2011-07-04 23:30:25 +02:00
parent 110cffc14c
commit dad118cc20
2 changed files with 5 additions and 2 deletions

View file

@ -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);

View file

@ -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;