本文へ移動

Wakusei Planets惑星

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

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

目次

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

BodyFacts型

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

The facts of one body: its radius, flattening, axial tilt, pole, prime meridian, rotation, colour, rings and the features a line drawing shows.

インポート

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

定義

interface BodyFacts {
    id: BodyId;
    kind: "star" | "planet" | "dwarf-planet" | "moon";
    parent?: HostId;
    name: {
        en: string;
        ja: string;
    };
    radiusKm: number;
    flattening: number;
    tiltDeg: number;
    pole: {
        ra: number;
        dec: number;
    };
    prime: {
        w0: number;
        rate: number;
    };
    rotationHours: number;
    synchronous?: boolean;
    axesKm?: readonly [
        number,
        number,
        number
    ];
    colour: string;
    showLon?: number;
    rings?: readonly RingBand[];
    features?: readonly Feature[];
}

メンバー

名前型説明
idBodyId
kind"moon" | "star" | "planet" | "dwarf-planet"
parent (省略可)HostId | undefined

The planet or dwarf planet a moon goes round.

name{ en: string; ja: string; }
radiusKmnumber

The equatorial radius in kilometres (a moon's mean radius).

flatteningnumber

(equatorial − polar) / equatorial.

tiltDegnumber

The angle between the spin axis and the orbit's normal, in degrees. Above 90 the spin is backwards.

pole{ ra: number; dec: number; }

The north pole's right ascension and declination, J2000, in degrees (IAU).

prime{ w0: number; rate: number; }

The prime meridian at J2000, in degrees, and how fast it turns, in degrees a day (negative: backwards).

rotationHoursnumber

The sidereal rotation period in hours; negative when it turns backwards.

synchronous (省略可)boolean | undefined

A moon that always shows the same face to its planet.

axesKm (省略可)readonly [number, number, number] | undefined

The semi-axes in kilometres along the line to the planet, along the orbit and along the pole, for a moon that is far from round.

colourstring

The body's mean colour, #rrggbb.

showLon (省略可)number | undefined

The longitude a portrait faces, degrees east: the side with the body's best-known features.

rings (省略可)readonly RingBand[] | undefined
features (省略可)readonly Feature[] | undefined

例

import { BODIES, type BodyFacts } from "@johnmorrisdotca/wakusei-planets";

const uranus: BodyFacts = BODIES.uranus;
console.log(uranus.tiltDeg, uranus.rotationHours);
97.77 -17.24

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

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

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