diff options
author | Pushkar Joshi | 2012-04-18 14:28:43 -0700 |
---|---|---|
committer | Pushkar Joshi | 2012-04-18 14:28:43 -0700 |
commit | 9b4f9a792f34b3c6ca291ad23da1efe4711687f4 (patch) | |
tree | ac5bd64ab0a8067489f7603bbf101ee8fb851f8f /js/lib/geom | |
parent | 890d84a1078fae1f21a56e8be3ed181650afe9e1 (diff) | |
download | ninja-9b4f9a792f34b3c6ca291ad23da1efe4711687f4.tar.gz |
re-enable dragging and editing of anchor point handles for bezier path editing in 3D
Diffstat (limited to 'js/lib/geom')
-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); |