feat: inputs

This commit is contained in:
TrèsAbhi committed 2024-01-01 21:03:27 -06:00
1 parent 73f7e84192
commit b40b7b2472
2 files changed
+75 -1

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
export function normalizeAngle180(angle: number) {
const newAngle = angle % (2 * Math.PI);
if (newAngle > Math.PI) {
return newAngle - 2 * Math.PI;
}
if (newAngle < -Math.PI) {
return newAngle + 2 * Math.PI;
}
return newAngle;
}