NAME
Astro::SpaceElevator - Model a Space Elevator
VERSION
Version 0.05
SYNOPSIS
use
Astro::SpaceElevator;
my
$elevator
= Astro::SpaceElevator->new(0, 120, 100_000,
time
());
"The elevator leaves the Earth's shadow at "
. (
$elevator
->shadows->{Earth}{penumbra})[1] .
"km above the base.\n"
;
METHODS
new
Creates a new elevator object. Takes four arguments: the latitude, longitude and height (in km) of the elevator, and a time in seconds since the epoch, in the GMT timezone.
time
Gets the time associated with the model. If you supply an argument, it uses that as a new time to update all of the time-dependant aspects of the model.
shadows
Returns a data structure giving the regions of the elevator that are in shadow, and which shadows are causing each region:
{
'Earth'
=> {
'penumbra'
=> [0,
'2466.25270202392'
],
'umbra'
=> [0,
'2309.7106914426'
]
},
'Moon'
=> {
'penumbra'
=> [0,
'66327.0611755147'
],
'umbra'
=> [
'12691.4616515026'
,
'18869.3918401299'
]
}
'time'
=>
bless
([ … ],
'Class::Date'
),
};
AUTHOR
Daniel Brooks, <db48x at yahoo.com>
BUGS
Please report any bugs or feature requests to bug-astro-spaceelevator at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Astro-SpaceElevator. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
COPYRIGHT
Copyright © 2007 by Daniel Brooks. All rights reserved.
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 172:
Non-ASCII character seen before =encoding in '…'. Assuming UTF-8