Astro-Coords
view release on metacpan or search on metacpan
lib/Astro/Coords.pm view on Meta::CPAN
Defaults to false.
=cut
sub usenow {
my $self = shift;
if (@_) {
$self->{UseNow} = shift;
# Since this affects caching we need to force a key check if this value
# is updated
$self->_calc_cache_key();
}
return $self->{UseNow};
}
=item B<datetime_is_unsafe>
If true, indicates that the DateTime object stored in this object is
not guranteed to be immutable by the externally user. This effectively
turns off the internal cache.
lib/Astro/Coords/Planet.pm view on Meta::CPAN
}
=item B<diam>
Returns the apparent angular planet diameter from the most recent calculation
of the apparent RA/Dec.
$diam = $c->diam();
Returns the answer as a C<Astro::Coords::Angle> object. Note that this
number is not updated automatically. (so don't change the time and expect
to get the correct answer without first asking for a ra/dec calculation).
=cut
sub diam {
my $self = shift;
if (@_) {
my $d = shift;
$self->{diam} = new Astro::Coords::Angle( $d, units => 'rad' );
}
( run in 0.460 second using v1.01-cache-2.11-cpan-8780591d54d )