NAME
Math::Trig - Trigonometric routines not already built-in
SYNOPSIS
use Math::Trig;
DESCRIPTION
Subroutines for coverting between degrees, radians, and gradians; converting between different coordinate systems (cartesian, spherical, cylindrical); and great circle formulas.
SUBROUTINES
Available with use Math::Trig
;
Available with use Math::Trig :radial
;
sub spherical-to-cartesian($rho, $theta, $phi)
sub spherical-to-cylindrical($rho, $theta, $phi)
sub cartesian-to-cylindrical($x,$y,$z)
sub cylindrical-to-cartesian($rho, $theta, $z)
sub cylindrical-to-spherical($rho, $theta, $phi)
Available with use Math::Trig :great-circle
;
sub great-circle-distance($theta0, $phi0, $theta1, $phi1, $rho = 1)
sub great-circle-direction($theta0, $phi0, $theta1, $phi1)
sub great-circle-bearing($theta0, $phi0, $theta1, $phi1)
sub great-circle-waypoint($theta0, $phi0, $theta1, $phi1, $point = 0.5)
sub great-circle-midpoint($theta0, $phi0, $theta1, $phi1)
sub great-circle-destination($theta0, $phi0, $dir0, $dst)
BUGS
AUTHOR
Jonathan Scott Duff
Source can be located at: https://github.com/raku-community-modules/Math-Trig . Comments and Pull Requests are welcome.
ACKNOWLEDGEMENTS
This module is shamelessly based on the Perl module of the same name. Without the authors and maintainers of that module, this module wouldn't exist in this form.
COPYRIGHT AND LICENSE
Copyright 2015 - 2017 Jonathan Scott Duff
Copyright 2018 - 2022 Raku Community
This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.