Explorar o código

Fixed intersectsSegment that takes a polygon.

closes #213
NathanSweet %!s(int64=11) %!d(string=hai) anos
pai
achega
21eade668b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      spine-js/spine.js

+ 1 - 1
spine-js/spine.js

@@ -1779,7 +1779,7 @@ spine.SkeletonBounds.prototype = {
 		return inside;
 	},
 	/** Returns true if the polygon contains the line segment. */
-	intersectsSegment: function (polygon, x1, y1, x2, y2) {
+	polygonIntersectsSegment: function (polygon, x1, y1, x2, y2) {
 		var nn = polygon.length;
 		var width12 = x1 - x2, height12 = y1 - y2;
 		var det1 = x1 * y2 - y1 * x2;