summaryrefslogtreecommitdiff
path: root/geometry.py
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-09-01 18:04:04 +0200
committerFlorian Jung <flo@windfisch.org>2015-09-01 18:04:04 +0200
commitccd6387920432c9a8263a2b9813d552642e6546a (patch)
tree88e7d588af56e9bd6c71b608df07a1d0c49cee1f /geometry.py
parent4251e85c172f57c39bdfa244e945578eb450926d (diff)
FancyClient has latency detection and rates motion steadyness
Diffstat (limited to 'geometry.py')
-rw-r--r--geometry.py4
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