EyeTrackVR/EyeTrackApp/utils/misc_utils.py
2023-02-01 23:50:08 +09:00

2 lines
58 B
Python

def clamp(x, low, high):
return max(low, min(x, high))