Skip to content

Commit

Permalink
vreckon: longitude [-180,180]
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Nov 24, 2023
1 parent dad72cd commit 488d536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion +matmap3d/vreckon.m
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
% output degrees
lat2 = rad2deg(lat2);
lon2 = rad2deg(lon2);
lon2 = mod(lon2,360); % follow [0,360] convention
% lon2 = mod(lon2,360); % follow [0,360] convention
if nargout > 2
a21 = atan2(sinAlpha, -tmp);
a21 = 180 + rad2deg(a21); % note direction reversal
Expand Down

0 comments on commit 488d536

Please sign in to comment.