Skip to content

Commit

Permalink
Remove duplicate call to length_of
Browse files Browse the repository at this point in the history
  • Loading branch information
wedesoft committed Jun 25, 2024
1 parent afa6789 commit ae7e375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skyfield/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def _to_spherical_and_rates(r, v):
length = length_of(r)
lat = arctan2(z, hypot(x, y));
lon = arctan2(y, x) % tau
range_rate = dots(r, v) / length_of(r)
range_rate = dots(r, v) / length

x2 = x * x
y2 = y * y
Expand Down

0 comments on commit ae7e375

Please sign in to comment.