From ccd6387920432c9a8263a2b9813d552642e6546a Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Tue, 1 Sep 2015 18:04:04 +0200 Subject: FancyClient has latency detection and rates motion steadyness --- geometry.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'geometry.py') 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 -- cgit v1.2.3