Reference · Facts, line drawings and positions
BodyFactstype
The facts of one body: its radius, flattening, axial tilt, pole, prime meridian, rotation, colour, rings and the features a line drawing shows.
Import it
import type { BodyFacts } from "@johnmorrisdotca/wakusei-planets";
Definition
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[];
}
Members
| Name | Type | Description |
|---|---|---|
id | BodyId | |
kind | "moon" | "star" | "planet" | "dwarf-planet" | |
parent (optional) | 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 (optional) | boolean | undefined | A moon that always shows the same face to its planet. |
axesKm (optional) | 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 (optional) | number | undefined | The longitude a portrait faces, degrees east: the side with the body's best-known features. |
rings (optional) | readonly RingBand[] | undefined | |
features (optional) | readonly Feature[] | undefined |
Examples
import { BODIES, type BodyFacts } from "@johnmorrisdotca/wakusei-planets";
const uranus: BodyFacts = BODIES.uranus;
console.log(uranus.tiltDeg, uranus.rotationHours);97.77 -17.24What it prints (run when this page was built)