besideBounds関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The box that holds both: what the camera must frame, and what Fit fits.
インポート
import { besideBounds } from "@johnmorrisdotca/uchusen-rockets";
定義
function besideBounds(craft: Bounds, placed: Bounds): Bounds
引数
| 名前 | 型 | 説明 |
|---|---|---|
craft | Bounds | The box the craft fills. |
placed | Bounds | The box the other rocket fills where |
戻り値
Bounds
The smallest box that holds both.
例
import { besideBounds } from "@johnmorrisdotca/uchusen-rockets";
console.log(besideBounds({ min: [-4, 0, -4], max: [4, 70, 4] }, { min: [8, 0, -5], max: [26, 124, 9] }).max);[ 26, 124, 9 ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。