Commit 72f1c331 authored by Joseph Siddons's avatar Joseph Siddons
Browse files

fix: correct bearing for second focal point

parent a24506f6
...@@ -273,7 +273,7 @@ class SpaceTimeEllipse: ...@@ -273,7 +273,7 @@ class SpaceTimeEllipse:
self.p2_lon, self.p2_lat = destination( self.p2_lon, self.p2_lat = destination(
self.lon, self.lon,
self.lat, self.lat,
(180 - self.bearing) % 360, (self.bearing - 180) % 360,
self.c, self.c,
) )
......
...@@ -193,7 +193,7 @@ class Ellipse: ...@@ -193,7 +193,7 @@ class Ellipse:
self.p2_lon, self.p2_lat = destination( self.p2_lon, self.p2_lat = destination(
self.lon, self.lon,
self.lat, self.lat,
(180 - self.bearing) % 360, (self.bearing - 180) % 360,
self.c, self.c,
) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment