Class: Astronoby::Libration
- Inherits:
-
Object
- Object
- Astronoby::Libration
- Defined in:
- lib/astronoby/libration.rb
Overview
Geocentric libration of the Moon: the small oscillations that let an observer on Earth see slightly more than half of the lunar surface over time. Holds the total (optical + physical) libration in longitude and latitude.
Instance Attribute Summary collapse
-
#latitude ⇒ Astronoby::Angle
readonly
Libration in latitude (b), positive towards the Moon’s north pole.
-
#longitude ⇒ Astronoby::Angle
readonly
Libration in longitude (l), positive towards the Moon’s Mare Crisium (east limb).
Instance Method Summary collapse
-
#initialize(longitude:, latitude:) ⇒ Libration
constructor
A new instance of Libration.
Constructor Details
#initialize(longitude:, latitude:) ⇒ Libration
Returns a new instance of Libration.
19 20 21 22 23 |
# File 'lib/astronoby/libration.rb', line 19 def initialize(longitude:, latitude:) @longitude = longitude @latitude = latitude freeze end |
Instance Attribute Details
#latitude ⇒ Astronoby::Angle (readonly)
Returns libration in latitude (b), positive towards the Moon’s north pole.
15 16 17 |
# File 'lib/astronoby/libration.rb', line 15 def latitude @latitude end |
#longitude ⇒ Astronoby::Angle (readonly)
Returns libration in longitude (l), positive towards the Moon’s Mare Crisium (east limb).
11 12 13 |
# File 'lib/astronoby/libration.rb', line 11 def longitude @longitude end |