本文へ移動

Wakusei Planets惑星

太陽・惑星・衛星を、線画、陰影つきの絵、表面の地図で描きます。実際の大きさ・傾き・自転つきで、任意の日時の衛星の位置も分かります。

「惑星」(わくせい) は、太陽のまわりを回る大きな星のことです。 名前について(英語)

目次

リファレンス

同じものを suncalc 1 の約束 (ラジアン、南からの方位) で

import { … } from "@johnmorrisdotca/wakusei-planets/suncalc/legacy";

リファレンスの説明と例は英語です。見出しと目次は日本語です。

エクスポート

名前種類概要
addTime関数Add a time to the ones getTimes gives: when the Sun reaches an altitude in degrees.
getMoonIllumination関数The Moon's phase, as suncalc 1 gave it.
getMoonPosition関数The Moon's place in the sky, as suncalc 1 gave it: the altitude includes refraction.
getMoonTimes関数The Moon's rise and set over the 24 hours from midnight of the moment's day, in the machine's zone or, with inUTC, in UTC.
getPosition関数The Sun's place in the sky, as suncalc 1 gave it: the altitude has no refraction in it.
getTimes関数The Sun's times for the solar day nearest a moment, as suncalc 1 gave them: every time a Date, invalid when it does not happen.
LegacyMoonIllumination型The Moon's illumination in suncalc 1's terms: the lit fraction, the phase 0 to 1, and the bright limb's angle in radians, negative while the Moon waxes and positive while it wanes.
LegacyMoonPosition型The Moon in a place's sky: the LegacyPosition, the distance in kilometres and the parallactic angle in radians.
LegacyMoonTimes型The Moon's rise and set; alwaysUp or alwaysDown is true when the Moon never rises or sets in the day.
LegacyPosition型Where a body is: the azimuth in radians from south toward west (0 south, a quarter turn west) and the altitude in radians.
LegacySunTimes型The Sun's times with every one a Date: an invalid Date (NaN) when the Sun does not reach that height that day.
times定数The times suncalc 1 gives, as [altitude in degrees, morning name, evening name].

ソースを見るGitHub で編集@johnmorrisdotca/wakusei-planets 0.24.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。