1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-11 22:08:20 +08:00

Fix: round results when converting coordinates between globe and screen

This commit is contained in:
LmeSzinc
2025-04-24 23:53:28 +08:00
parent 3505fedb6a
commit 081b659023

View File

@@ -135,10 +135,10 @@ class GlobeCamera(GlobeOperation, ZoneManager):
def globe2screen(self, points):
points = np.array(points) - self.globe_camera + self.globe.homo_center
return self.globe.globe2screen(points)
return self.globe.globe2screen(points).round()
def screen2globe(self, points):
points = self.globe.screen2globe(points)
points = self.globe.screen2globe(points).round()
return points - self.globe.homo_center + self.globe_camera
def zone_to_button(self, zone):