mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-14 06:59:06 -04:00
Use constant substitution for Numerical constants as well.
This commit is contained in:
parent
050ca1dcb1
commit
57a9f4fc91
6 changed files with 12 additions and 11 deletions
src/basic
|
@ -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;
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue