aboutsummaryrefslogtreecommitdiff
path: root/js/lib/geom/anchor-point.js
diff options
context:
space:
mode:
authorEric Guzman2012-04-26 03:16:50 -0700
committerEric Guzman2012-04-26 03:16:50 -0700
commit110aa15b48ec24063815aa3b86c7f8f041543a02 (patch)
treed0debb235807dd73f48e0793a73d37cc41ecf59c /js/lib/geom/anchor-point.js
parent143105a0b9c7765898b22d53489b4bd8df3dff2e (diff)
parentbcc8f8616f5ad4bf310928da6cbc01da12f6e468 (diff)
downloadninja-110aa15b48ec24063815aa3b86c7f8f041543a02.tar.gz
Merge branch 'refs/heads/master' into CSSPanelUpdates
Diffstat (limited to 'js/lib/geom/anchor-point.js')
-rwxr-xr-xjs/lib/geom/anchor-point.js4
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
224GLAnchorPoint.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
225GLAnchorPoint.prototype.getDistanceSq = function (x, y, z) { 229GLAnchorPoint.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);