rolledUp関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The camera's up axis after a roll about the direction it looks along. Zero roll is straight up. The direction is a unit vector from the subject towards the camera.
インポート
import { rolledUp } from "@johnmorrisdotca/uchusen-rockets";
定義
function rolledUp(direction: Vec3, roll: number): Vec3
引数
| 名前 | 型 | 説明 |
|---|---|---|
direction | Vec3 | Where the camera stands, as a unit vector. |
roll | number | Degrees about that direction. Positive rolls the camera's right side down. |
戻り値
Vec3
The up axis.
例
import { rolledUp } from "@johnmorrisdotca/uchusen-rockets";
console.log(rolledUp([0, 0, 1], 0));[ 0, 1, 0 ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。