NAME
Geo::Functions - Perl package for standard Geo:: functions
SYNOPSIS
use Geo::Functions qw{deg_rad deg_dms rad_deg}; #import into namespace
print "Degrees: ", deg_rad(3.14/4), "\n";
use Geo::Functions;
my $obj = Geo::Functions->new;
print "Degrees: ", $obj->deg_rad(3.14/2), "\n";
DESCRIPTION
CONVENTIONS
Function naming convention is "format of the return" underscore "format of the parameters." For example, you can read the deg_rad function as "degrees given radians" or "degrees from radians".
CONSTRUCTOR
new
The new() constructor
my $obj = Geo::Functions->new();
METHODS
deg_dms
Degrees given degrees minutes seconds.
my $deg=deg_dms(39, 29, 17.134);
my $deg=deg_dms(39, 29, 17.134, 'N');
deg_rad
Degrees given radians.
my $deg=deg_rad(3.14);
rad_deg
Radians given degrees.
my $rad=rad_deg(90);
round
Round to the nearest integer. This formula rounds toward +/- infinity.
my $int=round(42.2);
TODO
BUGS
LIMITS
AUTHOR
Michael R. Davis qw/perl michaelrdavis com/
LICENSE
Copyright (c) 2006 Michael R. Davis (mrdvt92)
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
Geo::Functions Geo::Ellipsoids