From 21eade668be61c6b03ddbd56f9ddb3ef966ddc5d Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Tue, 6 May 2014 14:09:32 +0200 Subject: [PATCH] Fixed intersectsSegment that takes a polygon. closes #213 --- spine-js/spine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-js/spine.js b/spine-js/spine.js index 0ca664eb5..1b6c4cdc8 100644 --- a/spine-js/spine.js +++ b/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;