diff options
author | Valerio Virgillito | 2012-04-24 15:36:59 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-04-24 15:36:59 -0700 |
commit | d3a6350163ada5644d34ed8d5c2a00cef4db2afc (patch) | |
tree | 8862827848c55b36cc2e2bc0bb0c07a5e50dc1ca /js/lib/geom/anchor-point.js | |
parent | 55e6d621b9555abac06ab4adff44dfe29a78ec4e (diff) | |
parent | e7bbd9b08b4cd87530596b370366d994ca766650 (diff) | |
download | ninja-d3a6350163ada5644d34ed8d5c2a00cef4db2afc.tar.gz |
Merge pull request #174 from pushkarjoshi/pentool
Pentool
Diffstat (limited to 'js/lib/geom/anchor-point.js')
-rwxr-xr-x | js/lib/geom/anchor-point.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/lib/geom/anchor-point.js b/js/lib/geom/anchor-point.js index 0e9f65ea..d254681c 100755 --- a/js/lib/geom/anchor-point.js +++ b/js/lib/geom/anchor-point.js | |||
@@ -221,6 +221,10 @@ GLAnchorPoint.prototype.getNext = function() { | |||
221 | return [this._nextX, this._nextY, this._nextZ]; | 221 | return [this._nextX, this._nextY, this._nextZ]; |
222 | }; | 222 | }; |
223 | 223 | ||
224 | GLAnchorPoint.prototype.getAllPos = function() { | ||
225 | return [[this._prevX, this._prevY, this._prevZ],[this._x, this._y, this._z],[this._nextX, this._nextY, this._nextZ]]; | ||
226 | }; | ||
227 | |||
224 | //return the square of distance from passed in point to the anchor position | 228 | //return the square of distance from passed in point to the anchor position |
225 | GLAnchorPoint.prototype.getDistanceSq = function (x, y, z) { | 229 | GLAnchorPoint.prototype.getDistanceSq = function (x, y, z) { |
226 | return (this._x - x) * (this._x - x) + (this._y - y) * (this._y - y) + (this._z - z) * (this._z - z); | 230 | return (this._x - x) * (this._x - x) + (this._y - y) * (this._y - y) + (this._z - z) * (this._z - z); |