[2316] 방위 표시 124~134°를 西北西/東北東(서북서/동북동)로 변경 — 표시 경계를 북면 판정 ±135°와 일치
Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
This commit is contained in:
parent
38d04918a2
commit
65c8535825
@ -416,6 +416,9 @@ export const usePolygon = () => {
|
|||||||
while (a > 180) a -= 360
|
while (a > 180) a -= 360
|
||||||
while (a < -180) a += 360
|
while (a < -180) a += 360
|
||||||
const i = Math.round(a / 22.5) // -8 ~ 8
|
const i = Math.round(a / 22.5) // -8 ~ 8
|
||||||
|
// [方位 追加要請 2026-07-03] 124~134°는 西北西/東北東 표시(北西/北東 시작을 135°로) — 북면 판정 ±135°와 표시 경계 일치
|
||||||
|
if (i === 6 && a <= 134) return positive[5] // 北西 → 西北西
|
||||||
|
if (i === -6 && a >= -134) return negative[5] // 北東 → 東北東
|
||||||
return i >= 0 ? positive[i] : negative[-i]
|
return i >= 0 ? positive[i] : negative[-i]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user