BoundingBox2D

概要

BoundingBox2D は Aspose.3D の FOSS における TypeScript 用のクラスです。

BoundingBox2D.constructor() は、範囲のない空のバウンディングボックスを作成します。

このクラスは TypeScript プログラムの BoundingBox2D オブジェクト向けに 12 のメソッドを宣言します。利用可能なメソッドは次のとおりです: constructor, getCenter, getSize, infinite, merge, null, overlapsWith。パブリックメンバーは、Aspose.3D の TypeScript 用 FOSS パッケージをインストールした後、任意の TypeScript アプリケーションからアクセス可能です。プロパティ: extent, maximum, minimum。

プロパティ

名前型アクセス説明
extentBoundingBoxExtent読み取り範囲を取得します。
minimumVector2読み取り最小値を取得します。
maximumVector2読み取り最大値を取得します。

メソッド

シグネチャ説明
constructor()与えられた最小ベクトルと最大ベクトルからボックスを作成します。
constructor(minimum: Vector2, maximum: Vector2)この BoundingBox2D インスタンスで constructor(minimum, maximum) を呼び出します。
constructor(minX: number, minY: number, maxX: number, maxY: number)この BoundingBox2D インスタンスで constructor(minX, minY, maxX, maxY) を呼び出します。
constructor()
merge(pt: Vector2)ボックスを現在の範囲とマージします(効果なし)
merge(bb: BoundingBox2D)この BoundingBox2D インスタンスで merge(bb) を呼び出します。
merge()
getCenter() → Vector2中心を返します。
getSize() → Vector2サイズを返します。
overlapsWith(box: BoundingBox2D) → booleanこのボックスが与えられたボックスと交差する場合に true を返します
null() → BoundingBox2D空の領域を表すバウンディングボックスを返します
infinite() → BoundingBox2D無限の範囲にわたるバウンディングボックスを返します

参照

 日本語