diff options
author | Valerio Virgillito | 2012-07-24 00:24:20 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-07-24 00:24:20 -0700 |
commit | 55a69aeb3c66b533d5a2d27d7548471c2c8b5dfc (patch) | |
tree | 365b393741e1fd34a3a4da68285cb1e9faa45e09 /js/tools/Rotate3DToolBase.js | |
parent | e711a4ffaa87dc368908020d57053cf82eba6f39 (diff) | |
download | ninja-55a69aeb3c66b533d5a2d27d7548471c2c8b5dfc.tar.gz |
jshint cleanup on the tools directory
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/tools/Rotate3DToolBase.js')
-rwxr-xr-x | js/tools/Rotate3DToolBase.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/js/tools/Rotate3DToolBase.js b/js/tools/Rotate3DToolBase.js index 545aedad..bd735eea 100755 --- a/js/tools/Rotate3DToolBase.js +++ b/js/tools/Rotate3DToolBase.js | |||
@@ -245,6 +245,7 @@ exports.Rotate3DToolBase = Montage.create(ModifierToolBase, { | |||
245 | value: function(data, event) { | 245 | value: function(data, event) { |
246 | var mat, | 246 | var mat, |
247 | angle, | 247 | angle, |
248 | f, | ||
248 | pt0 = data.pt0, | 249 | pt0 = data.pt0, |
249 | pt1 = data.pt1; | 250 | pt1 = data.pt1; |
250 | 251 | ||
@@ -291,7 +292,7 @@ exports.Rotate3DToolBase = Montage.create(ModifierToolBase, { | |||
291 | angle = this._getAngleToRotate(pt1.x, pt1.y); | 292 | angle = this._getAngleToRotate(pt1.x, pt1.y); |
292 | if(event.shiftKey) | 293 | if(event.shiftKey) |
293 | { | 294 | { |
294 | var f = Math.floor(angle/(Math.PI/4)); | 295 | f = Math.floor(angle/(Math.PI/4)); |
295 | angle = f*Math.PI/4; | 296 | angle = f*Math.PI/4; |
296 | } | 297 | } |
297 | this._delta = angle; | 298 | this._delta = angle; |
@@ -324,7 +325,7 @@ exports.Rotate3DToolBase = Montage.create(ModifierToolBase, { | |||
324 | } | 325 | } |
325 | if(event.shiftKey) | 326 | if(event.shiftKey) |
326 | { | 327 | { |
327 | var f = Math.floor(zAngle/(Math.PI/4)); | 328 | f = Math.floor(zAngle/(Math.PI/4)); |
328 | zAngle = f*Math.PI/4; | 329 | zAngle = f*Math.PI/4; |
329 | } | 330 | } |
330 | mat = Matrix.RotationZ(zAngle); | 331 | mat = Matrix.RotationZ(zAngle); |
@@ -335,7 +336,7 @@ exports.Rotate3DToolBase = Montage.create(ModifierToolBase, { | |||
335 | var xAngle = -this._mouseSpeed * (pt1.y - this.downPoint.y) * Math.PI / 180.0; | 336 | var xAngle = -this._mouseSpeed * (pt1.y - this.downPoint.y) * Math.PI / 180.0; |
336 | if(event.shiftKey) | 337 | if(event.shiftKey) |
337 | { | 338 | { |
338 | var f = Math.floor(yAngle/(Math.PI/4)); | 339 | f = Math.floor(yAngle/(Math.PI/4)); |
339 | yAngle = f*Math.PI/4; | 340 | yAngle = f*Math.PI/4; |
340 | f = Math.floor(xAngle/(Math.PI/4)); | 341 | f = Math.floor(xAngle/(Math.PI/4)); |
341 | xAngle = f*Math.PI/4; | 342 | xAngle = f*Math.PI/4; |