[MPlayer-dev-eng] [PATCH] GUI: Implement a true rotary potmeter

Hans-Dieter Kosch hdkosch at kabelbw.de
Thu Apr 10 03:56:00 CEST 2014


Ingo Brückl wrote:

>>> 2. How can floating point and atan2 issues be overcome to determine whether
>>>    two points x0,y0 and x1,y1 have virtually the same radian?

> It seems that 0.05 (approx. pi/60) is a reasonable threshold even for small
> images and pixels near the center.

I think, that'd be OK. Or try 1E-8, the epsilon value for a float.

Hans-Dieter


More information about the MPlayer-dev-eng mailing list