This commit is contained in:
m-RNA 2025-02-23 11:22:27 +00:00 committed by GitHub
commit ec0b6d5c7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -368,18 +368,26 @@ class EyeProcessor:
else:
self.ts = 10
xl = float(
(cx - self.xoff) / (self.xmax - self.xoff)
)
xr = float(
(cx - self.xoff) / (self.xmin - self.xoff)
)
yu = float(
(cy - self.yoff) / (self.ymin - self.yoff)
)
yd = float(
(cy - self.yoff) / (self.ymax - self.yoff)
)
temp = self.xmax - self.xoff
if (temp != 0.0):
xl = float(
(cx - self.xoff) / temp
)
temp = self.xmin - self.xoff
if (temp != 0.0):
xr = float(
(cx - self.xoff) / temp
)
temp = self.ymin - self.yoff
if (temp != 0.0):
yu = float(
(cy - self.yoff) / temp
)
temp = self.ymax - self.yoff
if (temp != 0.0):
yd = float(
(cy - self.yoff) / temp
)
out_x = 0
out_y = 0