Fix comments.

This commit is contained in:
Jürg Lehni 2011-07-06 15:31:16 +02:00
parent 99f6597615
commit 5c3a6f72b6
2 changed files with 2 additions and 5 deletions

View file

@ -492,7 +492,7 @@ var Curve = this.Curve = Base.extend(/** @lends Curve# */{
},
// Converts from the point coordinates (p1, c1, c2, p2) for one axis to
// the polynomial coefficients and solve the polynomial for val
// the polynomial coefficients and solves the polynomial for val
solve: function (p1, c1, c2, p2, val) {
return Numerical.solveCubic(
p2 - p1 + 3 * (c1 - c2), // a

View file

@ -1787,14 +1787,11 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
// t = pi * n + arctan(b cot(phi)) // y
var tx = - Math.atan(b * Math.tan(phi)),
ty = + Math.atan(b / Math.tan(phi)),
// Due to symetry, we don't need to cycle through pi * n
// solutions:
// Due to symetry, we don't need to cycle through pi * n solutions:
x = a * Math.cos(tx) * Math.cos(phi)
- b * Math.sin(tx) * Math.sin(phi),
y = b * Math.sin(ty) * Math.cos(phi)
+ a * Math.cos(ty) * Math.sin(phi);
// Now update the join / round padding, as required by
// getBounds() and code below.
return [Math.abs(x), Math.abs(y)];
}