Skip to the content

Wakusei Planets惑星

The Sun, the planets and their moons as a clean line drawing, a shaded realistic drawing or a painted surface map, with real sizes, tilt and rotation, and the moons where they are at any date and time.

Wakusei is the Japanese word 惑星 for a planet. About the name

Contents

Reference · Where the Sun, Moon and planets are for a date, in two scales, with the camera maths

RidePosetype

The camera ridePose works out: where it is, which way it looks, which way is up in the picture, its field of view in degrees, and how big the body looks from there (its angular radius in degrees).

Import it

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

Definition

interface RidePose {
    position: Vec3;
    forward: Vec3;
    up: Vec3;
    fov: number;
    bodyRadiusDegrees: number;
}

Members

NameTypeDescription
positionVec3
forwardVec3
upVec3
fovnumber
bodyRadiusDegreesnumber

The angular radius of the body it goes round, in degrees: 90 when the camera is on or inside it.

Examples

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

const describe = (pose: RidePose): string => `looking ${pose.forward.map((n) => n.toFixed(2)).join(",")} with a ${pose.fov} degree view`;
console.log(typeof describe);
function

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/wakusei-planets 0.24.0.