Astro-satpass
view release on metacpan or search on metacpan
lib/Astro/Coord/ECI/OVERVIEW.pod view on Meta::CPAN
* The C<set()> method is overridden so that attributes characteristic of
the L<OID|/OID> (such as 'name', 'backdate', and so on) being
represented are set on all contained objects, but attributes
characteristic of a specific L<TLE|/TLE> data set are set only on the
selected object.
* For select methods, such as the
L<Astro::Coord::ECI::TLE|Astro::Coord::ECI::TLE> C<pass()> method, the
L<Astro::Coord::ECI::TLE::Set|Astro::Coord::ECI::TLE::Set> object passes
itself to to the method as the invocant, rather than passing the current
object. This way such methods transparently switch L<TLE|/TLE> data sets
whenever appropriate.
=head2 Astro::Coord::ECI::Utils
The L<Astro::Coord::ECI::Utils|Astro::Coord::ECI::Utils> module is not a
member of the L<Astro::Coord::ECI|Astro::Coord::ECI> inheritance
hierarchy, but is a container for all those utility subroutines that
are not intrinsically object-oriented. These are generally conversion
routines of some sort, such as the previously-mentioned C<deg2rad()>
subroutine and its inverse C<rad2deg()>, and conversions among the
lib/Astro/Coord/ECI/TLE.pm view on Meta::CPAN
return $self->{&TLE_INIT}{TLE_semiminor} ||= do {
my $e = $self->get('eccentricity');
$self->semimajor() * sqrt(1 - $e * $e);
};
}
=item $tle->set (attribute => value ...)
This method sets the values of the various attributes. The changing of
attributes actually used by the orbital models will cause the models to
be reinitialized. This happens transparently, and is no big deal. For
a description of the attributes, see L</Attributes>.
Because this is a subclass of L<Astro::Coord::ECI|Astro::Coord::ECI>,
any attributes of that class can also be set.
=cut
sub set {
my ($self, @args) = @_;
@args % 2 and croak "The set method takes an even number of arguments.";
( run in 0.386 second using v1.01-cache-2.11-cpan-a1d94b6210f )