Skip to content

Commit

Permalink
latlon-spherical: Library of geodesy functions for operations on a sp…
Browse files Browse the repository at this point in the history
…herical earth model
  • Loading branch information
paulcager committed Dec 15, 2020
1 parent 5ff87f8 commit 281376f
Show file tree
Hide file tree
Showing 3 changed files with 856 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dms.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func Wrap180(degrees float64) float64 {
// Wrap360 constrain degrees to range 0..360 (for bearings); e.g. -1 => 359, 361 => 1.
func Wrap360(degrees float64) float64 {
// avoid rounding due to arithmetic ops if within range
if 0 <= degrees && degrees <= 360 {
if 0 <= degrees && degrees < 360 {
return degrees
}

Expand Down
Loading

0 comments on commit 281376f

Please sign in to comment.