Method: When::Ephemeris::Coords.rectangular

Defined in:
lib/when_exe/ephemeris.rb

.rectangular(x, y, z, c = nil) ⇒ When::Ephemeris::Coords

オブジェクトの生成

Parameters:

  • x (Numeric)

    x 座標

  • y (Numeric)

    y 座標

  • z (Numeric)

    z 座標

  • c (Numeric) (defaults to: nil)

    周回数(デフォルト - phi から生成)

    極座標との1対1対応を保証するため、z軸の周りを何週して現在の位置にあるかを保持する

Returns:



377
378
379
# File 'lib/when_exe/ephemeris.rb', line 377

def rectangular(x, y, z, c=nil)
  Coords.new(x, y, z, c, {:system=>:rectangular})
end