faceOffset関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 { faceOffset } from "@johnmorrisdotca/chikyu-earth/space";
定義
function faceOffset(face: RideFace): { yaw: number; tilt: number; }
引数
| 名前 | 型 | 説明 |
|---|---|---|
face | RideFace | The facing. |
戻り値
{ yaw: number; tilt: number; }
The yaw and tilt to give aboveAxes.
例
import { faceOffset } from "@johnmorrisdotca/chikyu-earth/space";
console.log(faceOffset("down").tilt, faceOffset("ahead").tilt > 1);0 true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。