This commit is contained in:
2025-01-31 15:35:36 +08:00
parent d479d39352
commit 1952df0c30
9 changed files with 19 additions and 42 deletions
+2 -4
View File
@@ -34,10 +34,8 @@ func FloatRound(f float64, n int) float64 {
}
func Limit360(x float64) float64 {
for x > 360 {
x -= 360
}
for x < 0 {
x = math.Mod(x, 360)
if x < 0 {
x += 360
}
return x