The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Astro::Montenbruck::Ephemeris::Planet::Moon - Moon.

SYNOPSIS

  use Astro::Montenbruck::Ephemeris::Planet::Moon;
  my $planet = Astro::Montenbruck::Ephemeris::Planet::Moon->new();
  my @geo = $planet->position($t); # apparent geocentric ecliptical coordinates

DESCRIPTION

Child class of Astro::Montenbruck::Ephemeris::Planet, responsible for calculating Moon position.

METHODS

Astro::Montenbruck::Ephemeris::Planet::Moon->new

Constructor.

$self->position($t)

Geocentric ecliptic coordinates of the Moon

Arguments

$t — time in Julian centuries since J2000: (JD-2451545.0)/36525.0

Returns

Hash of geocentric ecliptical coordinates.

  • x — geocentric longitude, arc-degrees

  • y — geocentric latitude, arc-degrees

  • z — distance from Earth, AU

AUTHOR

Sergey Krushinsky, <krushi at cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2009-2019 by Sergey Krushinsky

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