Class: Astronoby::Libration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(longitude:, latitude:) ⇒ Libration

Returns a new instance of Libration.

Parameters:



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

#latitudeAstronoby::Angle (readonly)

Returns libration in latitude (b), positive towards the Moon’s north pole.

Returns:

  • (Astronoby::Angle)

    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

#longitudeAstronoby::Angle (readonly)

Returns libration in longitude (l), positive towards the Moon’s Mare Crisium (east limb).

Returns:

  • (Astronoby::Angle)

    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