mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-04 03:45:58 -05:00
Use short-cut to Math.abs()
This commit is contained in:
parent
d0c763f27d
commit
e63b3a0797
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ var Numerical = new function() {
|
|||
* Numerical.EPSILON.
|
||||
*/
|
||||
isZero: function(val) {
|
||||
return Math.abs(val) <= this.EPSILON;
|
||||
return abs(val) <= this.EPSILON;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue