turnedBy関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What the family's view controls choose: the turn and tip, in degrees, from a base angle. Dragging right makes yaw larger, which carries the camera the other way round; tilt larger tips the top away, which lowers the camera.
インポート
import { turnedBy } from "@johnmorrisdotca/uchusen-rockets";
定義
function turnedBy(base: Angle, yaw: number, tilt: number): Angle
引数
| 名前 | 型 | 説明 |
|---|---|---|
base | Angle | The angle to turn from. |
yaw | number | Degrees turned round. |
tilt | number | Degrees tipped up or down. |
戻り値
Angle
The new angle.
例
import { turnedBy, VIEWS } from "@johnmorrisdotca/uchusen-rockets";
console.log(turnedBy(VIEWS.front, 30, 10));{ az: -30, el: -7 }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。