本文へ移動

Wakusei Planets惑星

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

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

目次

リファレンス · データ・線画・位置

Apparent型

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

What the sky shows of a body at a time: its pose, the latitude the viewer sees it from (how open its rings are), the longitude at the middle of the disc, the phase and the size.

インポート

import type { Apparent } from "@johnmorrisdotca/wakusei-planets";

定義

interface Apparent extends Pose {
    id: BodyId;
    time: number;
    subObserverLat: number;
    centralMeridian: number;
    phaseAngle: number;
    illumination: number;
    distanceKm: number;
    diameterDeg: number;
    frame: {
        right: Vec3;
        up: Vec3;
        toward: Vec3;
    };
}

メンバー

名前型説明
idBodyId

How the body is turned.

timenumber

The instant, in milliseconds since 1970.

subObserverLatnumber

Degrees above (positive) or below the body's equator that the viewer sees it from: how open its rings are.

centralMeridiannumber

The longitude at the middle of the disc, degrees east, 0 to 360.

phaseAnglenumber

The Sun–body–viewer angle in degrees: 0 is full, 180 is new.

illuminationnumber

The fraction of the disc that is lit, 0 to 1.

distanceKmnumber

The distance from the viewer in kilometres.

diameterDegnumber

The angular diameter in degrees.

frame{ right: Vec3; up: Vec3; toward: Vec3; }

The viewer's frame in J2000 ecliptic vectors, to turn more vectors into the same view.

poleVec3

The north pole.

meridianVec3

The direction of longitude 0 on the equator.

lightVec3

The direction of the Sun, from the body.

例

import { apparent, type Apparent } from "@johnmorrisdotca/wakusei-planets";

const moon: Apparent = apparent("moon", Date.UTC(2026, 10, 24, 14));
console.log(moon.illumination.toFixed(2));
1.00

出力(このページを作ったときに実行した結果)

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

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