Skip to content

Commit e792bc8

Browse files
committed
add 1e-15 tolerance in isFullCircle
1 parent 452e792 commit e792bc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/angles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function wrap180(deg) {
3737
* @return {boolean}
3838
*/
3939
function isFullCircle(aBnds) {
40-
return Math.abs(aBnds[1] - aBnds[0]) === twoPI;
40+
return Math.abs(Math.abs(aBnds[1] - aBnds[0]) - twoPI) < 1e-15;
4141
}
4242

4343
/**

0 commit comments

Comments
 (0)