From 9d66c032f7616be23a83f807ec654dd5e822b8df Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 17 Dec 2017 11:34:43 +0000 Subject: [PATCH] helixish: bugfix Signed-off-by: Ian Jackson --- helixish.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helixish.py b/helixish.py index 39d525a..afba64e 100644 --- a/helixish.py +++ b/helixish.py @@ -84,7 +84,7 @@ class HelixishCurve(): # algorithm courtesy of Simon Tatham (`Railway problem', # pers.comm. to ijackson@chiark 23.1.2004) railway_angleoffset = atan2(*q_plane[0:2]) - railway_theta = tau/4 - railway_angleoffset + railway_theta = atan2(*dp_plane[0:2]) - railway_angleoffset railway_phi = atan2(*dq_plane[0:2]) - railway_angleoffset railway_cos_theta = cos(railway_theta) railway_cos_phi = cos(railway_phi) -- 2.30.2