class MkSunmoon::Sunmoon
Attributes
alt[R]
day[R]
lat[R]
lon[R]
month[R]
year[R]
Public Class Methods
new(args)
click to toggle source
# File lib/mk_sunmoon/sunmoon.rb, line 9 def initialize(args) @year, @month, @day, @lat, @lon, @alt = args @jd = gc2jd(year, month, day) @jd_jst = @jd + Const::OFFSET_JST @dt = compute_dt(year, month, day) @incl = Const::INCLINATION * Math.sqrt(@alt) end
Public Instance Methods
moon_mp()
click to toggle source
moonrise()
click to toggle source
moonset()
click to toggle source
sun_mp()
click to toggle source
sunrise()
click to toggle source