logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

GIS::Distance::MathTrig - Great cirlce distance calculations using Math::Trig.

Authors

       See "AUTHORS" in GIS::Distance.

Description

       This formula uses Math::Trig's "great_circle_distance()" which at this time uses math almost exactly the
       same formula as the GIS::Distance::Cosine formula.  And the Cosine formula is about 5% faster than this
       formula.

       Normally this module is not used directly.  Instead GIS::Distance is used which in turn interfaces with
       the various formula classes.

Formula

           lat0 = 90 degrees - phi0
           lat1 = 90 degrees - phi1
           d = R * arccos(cos(lat0) * cos(lat1) * cos(lon1 - lon01) + sin(lat0) * sin(lat1))

       As stated in the Math::Trig documentation.

License

       See "LICENSE" in GIS::Distance.

perl v5.36.0                                       2023-10-21                       GIS::Distance::MathTrig(3pm)

Name

       GIS::Distance::MathTrig - Great cirlce distance calculations using Math::Trig.

Support

       See "SUPPORT" in GIS::Distance.

See Also