Geo::Constants(3pm)

Geo::Constants3pm

Package for standard geo:: constants.

Usage

  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";

Overview

Constructor

new

The new() constructor

  my $obj = Geo::Constants->new();

initialize

Functions

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();

UOM: degrees/radian

Rad

  my $radians_per_degree = $obj->RAD;
  use Geo::Constants qw{DEG};
  my $radians_per_degree = RAD();

UOM: radians/degree

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 m/s/knot

UOM: meters/second per knot

Releases

5 releases since Debian 9 (Stretch); the text changed 3 times.

  1. 9–10
  2. 11
  3. 12
  4. 13

Author

Michael R. Davis

License

Copyright (c) 2006-2025 Michael R. Davis

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

From libgeo-constants-perl 0.07-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.