diff options
author | Kris Kowal | 2012-07-06 11:52:06 -0700 |
---|---|---|
committer | Kris Kowal | 2012-07-06 15:01:48 -0700 |
commit | 648ee61ae84216d0236e0dbc211addc13b2cfa3a (patch) | |
tree | 8f0f55557bd0c47a84e49c1977c950645d284607 /js/stage/tool-handle.js | |
parent | aedd14b18695d031f695d27dfbd94df5614495bb (diff) | |
download | ninja-648ee61ae84216d0236e0dbc211addc13b2cfa3a.tar.gz |
Expand tabs
Diffstat (limited to 'js/stage/tool-handle.js')
-rwxr-xr-x | js/stage/tool-handle.js | 10 |
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) |