Use constant substitution for Numerical constants as well.

This commit is contained in:
Jürg Lehni 2012-12-27 18:36:59 +01:00
parent 050ca1dcb1
commit 57a9f4fc91
6 changed files with 12 additions and 11 deletions
src/basic

View file

@ -494,7 +494,7 @@ var Matrix = this.Matrix = Base.extend(/** @lends Matrix# */{
getRotation: function() {
var angle1 = -Math.atan2(this._b, this._d),
angle2 = Math.atan2(this._c, this._a);
return Math.abs(angle1 - angle2) < Numerical.EPSILON
return Math.abs(angle1 - angle2) < /*#=*/ Numerical.EPSILON
? angle1 * 180 / Math.PI : undefined;
},