diff --git a/src/utils.ts b/src/utils.ts index d74f4f7..eeabd03 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -58,7 +58,7 @@ export function rectIntersect(r0: IRect, r1: IRect) { } export function degreesToRads(degrees: number) { - return degrees / (180 * Math.PI) + return degrees * Math.PI / 180 } export function radsToDegrees(radians: number) {