mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-29 15:50:22 -04:00
Update math-util.js
This commit is contained in:
parent
6ec974f710
commit
4ce6f4f7c7
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ class MathUtil {
|
||||||
case 270:
|
case 270:
|
||||||
return -Infinity;
|
return -Infinity;
|
||||||
default:
|
default:
|
||||||
return parseFloat(Math.tan((Math.PI * angle) / 180).toFixed(10));
|
return Math.round(Math.tan(angle / 180 * Math.PI) * 1e10) / 1e10;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue