Sha256: f6a5473b74954436663ad2b420bcc03f7331cc087cae0d7e40ccde84977815cd

Contents?: true

Size: 835 Bytes

Versions: 6

Compression:

Stored size: 835 Bytes

Contents

# frozen_string_literal: true

require_relative '../../../../calculation/stella/solar/choukei_value'

require_relative '../../const/number'

require_relative './adjustment'

# :nodoc:
module Zakuro
  # :nodoc:
  module Gihou
    # :nodoc:
    module Solar
      #
      # Value 太陽補正値
      #
      module Value
        class << self
          #
          # 太陽の運行による補正値を算出する
          #
          # @param [SolarTerm] solar_location 入定気
          #
          # @return [Integer] 補正値
          #
          def get(solar_location:)
            remainder = solar_location.remainder

            row = Adjustment.specify(index: solar_location.index)

            Calculation::Solar::ChoukeiValue.get(remainder: remainder, row: row)
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
zakuro-0.9.4 lib/zakuro/version/gihou/stella/solar/value.rb
zakuro-0.9.3 lib/zakuro/version/gihou/stella/solar/value.rb
zakuro-0.9.2 lib/zakuro/version/gihou/stella/solar/value.rb
zakuro-0.9.1 lib/zakuro/version/gihou/stella/solar/value.rb
zakuro-0.9.0 lib/zakuro/version/gihou/stella/solar/value.rb
zakuro-0.8.0 lib/zakuro/version/gihou/stella/solar/value.rb