| Astro-Nova documentation | view source | Contained in the Astro-Nova distribution. |
Astro::Nova::EquPosn - Perl representation of a libnova ln_equ_posn
use Astro::Nova qw(functions ...); my $date = Astro::Nova::EquPosn->new(); $date->set_year(...); # ... print $date->as_ascii(), "\n"; my @members = $date->get_all();
This class represents a libnova ln_equ_posn struct. The struct has the following layout:
ln_equ_posn {
double ra # right ascension
double dec # declination
}
Constructor returns a new Astro::Nova::EquPosn.
Optionally takes key/value pairs for setting the struct members.
Extra arguments are ignored. Uninitialized struct members are set to zero.
Get or set any of the class attributes. (See list above)
Returns all members as a list.
Sets all members. Takes a list of values which must be in the order shown above. Any missing values are ignored, undefs are skipped.
Returns a human-readable ASCII table of the date information.
Returns a list of all members in order.
Convert to galactic coordinates with respect to the B1950 or J2000 epochs (returns an Astro::Nova::GalPosn object).
When called as a class method, creates a new Astro::Nova::EquPosn object from the
given Astro::Nova::GalPosn object. Uses the B1950/J2000 epochs according to
the method name.
When called as an object method, sets the current object's state instead.
libnova website: http://libnova.sourceforge.net/
Steffen Mueller, <smueller@cpan.org>
The Astro::Nova wrapper of libnova is copyright (C) 2009-2010 by Steffen Mueller.
The wrapper code is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.0 or, at your option, any later version of Perl 5 you may have available.
libnova is maintained by Liam Girdwood and Petr Kubanek.
libnova is released under the GNU LGPL. This may limit the licensing terms of the wrapper code. If in doubt, ask a lawyer.
| Astro-Nova documentation | view source | Contained in the Astro-Nova distribution. |