From 9f1744708955e2f14284925c20d12ad0486c3f30 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 08 五月 2024 12:59:58 +0800
Subject: [PATCH] #

---
 src/utils/common.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/utils/common.js b/src/utils/common.js
index 4044069..6fc9711 100644
--- a/src/utils/common.js
+++ b/src/utils/common.js
@@ -28,6 +28,10 @@
     return (targetTheta - originTheta > 180) ? targetTheta - 360 : targetTheta;
 }
 
+export const positiveAngle = (angle) => {
+    return ((angle % 360) + 360) % 360;
+}
+
 export const normalizeAngle = (angle) => {
     let newAngle = angle % 360;
 

--
Gitblit v1.9.1