Reference · The Sun, Moon and planets: pure parts
faceOffsetfunction
Yaw and tilt, in radians, that put a camera looking at a satellite on a facing. down is straight above it, looking down at it and the Earth. ahead looks along the way it goes.
Import it
import { faceOffset } from "@johnmorrisdotca/chikyu-earth/space";
Definition
function faceOffset(face: RideFace): { yaw: number; tilt: number; }
Parameters
| Name | Type | Description |
|---|---|---|
face | RideFace | The facing. |
Returns
{ yaw: number; tilt: number; }
The yaw and tilt to give aboveAxes.
Examples
import { faceOffset } from "@johnmorrisdotca/chikyu-earth/space";
console.log(faceOffset("down").tilt, faceOffset("ahead").tilt > 1);0 trueWhat it prints (run when this page was built)