-
-
15 Jan 2007 07:53:35 UTC
- Distribution: Geo-Constants
- Module version: 0.06
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (2660 / 1 / 0)
- Kwalitee
Bus factor: 1- 91.18% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (2.56KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Exporter
- strict
- vars
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Geo::Constants - Package for standard Geo:: constants.
SYNOPSIS
use Geo::Constants qw{PI DEG RAD}; #import into namespace print "PI: ", PI(), "\n"; print "d/r: ", DEG(), "\n"; print "r/d: ", RAD(), "\n"; use Geo::Constants; #Perl OO my $obj = Geo::Constants->new(); print "PI: ", $obj->PI, "\n"; print "d/r: ", $obj->DEG, "\n"; print "r/d: ", $obj->RAD, "\n";
DESCRIPTION
CONSTRUCTOR
new
The new() constructor
my $obj = Geo::Constants->new();
METHODS
PI
my $pi = $obj->PI; use Geo::Constants qw{PI}; my $pi = PI();
DEG
my $degrees_per_radian = $obj->DEG; use Geo::Constants qw{DEG}; my $degrees_per_radian = DEG();
RAD
my $radians_per_degree = $obj->RAD; use Geo::Constants qw{DEG}; my $radians_per_degree = RAD();
KNOTS
1 nautical mile per hour = (1852/3600) m/s - United States Department of Commerce, National Institute of Standards and Technology, NIST Special Publication 330, 2001 Edition
Returns 1852/3600
TODO
Add more constants
BUGS
Please send to the geo-perl email list.
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
Module Install Instructions
To install Geo::Constants, copy and paste the appropriate command in to your terminal.
cpanm Geo::Constants
perl -MCPAN -e shell install Geo::Constants
For more information on module installation, please visit the detailed CPAN module installation guide.