diff options
| author | Florian Jung <flo@windfisch.org> | 2015-09-01 18:04:04 +0200 |
|---|---|---|
| committer | Florian Jung <flo@windfisch.org> | 2015-09-01 18:04:04 +0200 |
| commit | ccd6387920432c9a8263a2b9813d552642e6546a (patch) | |
| tree | 88e7d588af56e9bd6c71b608df07a1d0c49cee1f /geometry.py | |
| parent | 4251e85c172f57c39bdfa244e945578eb450926d (diff) | |
FancyClient has latency detection and rates motion steadyness
Diffstat (limited to 'geometry.py')
| -rw-r--r-- | geometry.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/geometry.py b/geometry.py index d69add8..0fa1114 100644 --- a/geometry.py +++ b/geometry.py @@ -25,3 +25,7 @@ def is_colinear(points, epsilon=1): return False return True +def angle_diff(alpha, beta): + result = (alpha-beta) % (2*math.pi) + if result > math.pi: result -= 2*math.pi + return result |
