각도 계산 수정
This commit is contained in:
parent
6531949e40
commit
ac6bf7eae3
@ -306,7 +306,7 @@ export const usePolygon = () => {
|
|||||||
|
|
||||||
let text = ''
|
let text = ''
|
||||||
|
|
||||||
const compassType = (375 - moduleCompass) / 15
|
const compassType = (375 - getDegreeInOrientation(moduleCompass)) / 15
|
||||||
|
|
||||||
if ([1, 25].includes(compassType)) {
|
if ([1, 25].includes(compassType)) {
|
||||||
direction === 'north' ? (text = '北') : direction === 'south' ? (text = '南') : direction === 'west' ? (text = '西') : (text = '東')
|
direction === 'north' ? (text = '北') : direction === 'south' ? (text = '南') : direction === 'west' ? (text = '西') : (text = '東')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user