Reference · Facts, line drawings and positions
Posetype
The way a body is turned toward the viewer, in the viewer's frame (x to the right, y up, z toward the viewer), as unit vectors: its north pole, the direction of longitude 0 and the Sun's direction.
Import it
import type { Pose } from "@johnmorrisdotca/wakusei-planets";
Definition
interface Pose {
pole: Vec3;
meridian: Vec3;
light: Vec3;
}
Members
| Name | Type | Description |
|---|---|---|
pole | Vec3 | The north pole. |
meridian | Vec3 | The direction of longitude 0 on the equator. |
light | Vec3 | The direction of the Sun, from the body. |
Examples
import { portrait, type Pose } from "@johnmorrisdotca/wakusei-planets";
const pose: Pose = portrait("saturn");
console.log(pose.pole.map((n) => n.toFixed(2)).join(", "));0.42, 0.83, 0.37What it prints (run when this page was built)