mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
Merge 7eb3513e5d into 50a68e6177
This commit is contained in:
commit
ec0b6d5c7b
@ -368,17 +368,25 @@ class EyeProcessor:
|
|||||||
else:
|
else:
|
||||||
self.ts = 10
|
self.ts = 10
|
||||||
|
|
||||||
|
temp = self.xmax - self.xoff
|
||||||
|
if (temp != 0.0):
|
||||||
xl = float(
|
xl = float(
|
||||||
(cx - self.xoff) / (self.xmax - self.xoff)
|
(cx - self.xoff) / temp
|
||||||
)
|
)
|
||||||
|
temp = self.xmin - self.xoff
|
||||||
|
if (temp != 0.0):
|
||||||
xr = float(
|
xr = float(
|
||||||
(cx - self.xoff) / (self.xmin - self.xoff)
|
(cx - self.xoff) / temp
|
||||||
)
|
)
|
||||||
|
temp = self.ymin - self.yoff
|
||||||
|
if (temp != 0.0):
|
||||||
yu = float(
|
yu = float(
|
||||||
(cy - self.yoff) / (self.ymin - self.yoff)
|
(cy - self.yoff) / temp
|
||||||
)
|
)
|
||||||
|
temp = self.ymax - self.yoff
|
||||||
|
if (temp != 0.0):
|
||||||
yd = float(
|
yd = float(
|
||||||
(cy - self.yoff) / (self.ymax - self.yoff)
|
(cy - self.yoff) / temp
|
||||||
)
|
)
|
||||||
|
|
||||||
out_x = 0
|
out_x = 0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user