mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-27 22:50:22 -04:00
Fix degToRad function definition. Resolves GH-229
This commit is contained in:
parent
80fa2d5a58
commit
ace9a96fc2
3 changed files with 7 additions and 8 deletions
src/util
|
@ -6,7 +6,7 @@ function MathUtil () {}
|
|||
* @return {!number} Equivalent value in radians.
|
||||
*/
|
||||
MathUtil.degToRad = function (deg) {
|
||||
return (Math.PI * (90 - deg)) / 180;
|
||||
return deg * Math.PI / 180;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue