Rename Curve#getCrossingsFor() -> #getCrossings()

This commit is contained in:
Jürg Lehni 2011-07-06 22:07:34 +02:00
parent d1185c5f8b
commit 8b6d9746ce
2 changed files with 2 additions and 2 deletions

View file

@ -305,7 +305,7 @@ var Curve = this.Curve = Base.extend(/** @lends Curve# */{
return this._evaluate(parameter, 2);
},
getCrossingsFor: function(point, prevSlope) {
getCrossings: function(point, prevSlope) {
// Implement the crossing number algorithm:
// http://en.wikipedia.org/wiki/Point_in_polygon
// Solve the y-axis cubic polynominal for point.y and count all

View file

@ -1175,7 +1175,7 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
crossings = 0;
for (var i = 0, l = curves.length; i < l; i++) {
var curve = curves[i];
crossings += curve.getCrossingsFor(point,
crossings += curve.getCrossings(point,
prevCurve.getTangent(1).y);
prevCurve = curve;
}