in reply to Calculate bearing between GPS coordinates

Since you're using Math::Trig anyway, why don't you use its great_circle_direction() and rad2deg()?
  • Comment on Re: Calculate bearing between GPS coordinates

Replies are listed 'Best First'.
Re^2: Calculate bearing between GPS coordinates
by stevieb (Canon) on May 31, 2017 at 21:23 UTC

    I didn't even know about great_circle_direction() :)

    As far as rad2deg() and deg2rad(), I had them in, but wanted to learn as many of the actual mathematical equations as I possibly could for those functions so I understood what was happening.