Method: When::Ephemeris::Datum::Big#_coords
- Defined in:
- lib/when_exe/ephemeris/planets.rb
#_coords(t) ⇒ When::Ephemeris::Coords
位置 (黄道座標)
543 544 545 546 547 548 549 550 551 552 553 554 555 |
# File 'lib/when_exe/ephemeris/planets.rb', line 543 def _coords(t) y = julian_year_from_1975(+t) phi = nn = trigonometric(y, @nn) @jsn.each_index do |k| phi += @jsn[k] * sind((k+1)*nn) end Coords.polar( (phi+ @jsl[0]*sind(2*phi+@jsl[1]) + @jsl[2] + @jsl[3]*y) / 360, asin(@jst[0]*sind(phi+@jst[1])) / CIRCLE + ((@jst[2]+@jst[3]*y)*sind(phi+@jst[4]) + trigonometric(y, @theta)) / 360, 10**(trigonometric(y,@radius)) * @jsr[0]/(1+@jsr[1]*cosd(phi)), trigonometric(y, @phi, 0, 1) / 360) end |