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[];
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
id | BodyId | |
kind | "moon" | "star" | "planet" | "dwarf-planet" | |
parent (省略可) | HostId | undefined | The planet or dwarf planet a moon goes round. |
name | { en: string; ja: string; } | |
radiusKm | number | The equatorial radius in kilometres (a moon's mean radius). |
flattening | number | (equatorial − polar) / equatorial. |
tiltDeg | number | 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). |
rotationHours | number | 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. |
colour | string | The body's mean colour, |
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出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。