aboutsummaryrefslogtreecommitdiff
path: root/js/stage/tool-handle.js
diff options
context:
space:
mode:
authorKris Kowal2012-07-06 11:52:06 -0700
committerKris Kowal2012-07-06 15:01:48 -0700
commit648ee61ae84216d0236e0dbc211addc13b2cfa3a (patch)
tree8f0f55557bd0c47a84e49c1977c950645d284607 /js/stage/tool-handle.js
parentaedd14b18695d031f695d27dfbd94df5614495bb (diff)
downloadninja-648ee61ae84216d0236e0dbc211addc13b2cfa3a.tar.gz
Expand tabs
Diffstat (limited to 'js/stage/tool-handle.js')
-rwxr-xr-xjs/stage/tool-handle.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/stage/tool-handle.js b/js/stage/tool-handle.js
index 5ce243ff..e5b0a22f 100755
--- a/js/stage/tool-handle.js
+++ b/js/stage/tool-handle.js
@@ -736,14 +736,14 @@ exports.TranslateHandle = Montage.create(ToolHandle, {
736 }, 736 },
737 737
738 collidesWithPoint: 738 collidesWithPoint:
739 { 739 {
740 value:function (x, y) 740 value:function (x, y)
741 { 741 {
742 var globalPt = [x, y, this._origin[2]]; 742 var globalPt = [x, y, this._origin[2]];
743 743
744 // test for a hit on the origin 744 // test for a hit on the origin
745 var dist = vecUtils.vecDist( 2, globalPt, this._origin ); 745 var dist = vecUtils.vecDist( 2, globalPt, this._origin );
746 if (dist <= 5) return 1; 746 if (dist <= 5) return 1;
747 747
748 var nearPt = MathUtils.nearestPointOnLine2D( this._origin, this._dirVec, globalPt ); 748 var nearPt = MathUtils.nearestPointOnLine2D( this._origin, this._dirVec, globalPt );
749 if(!nearPt) 749 if(!nearPt)