FMX.Types3D.TBoundingBox.Create

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

constructor Create(const AnOrigin: TPoint3D); overload;
constructor Create(const AnOrigin: TPoint3D; const Width, Height, Depth: Single); overload;
constructor Create(const Left, Top, Near, Right, Bottom, Far: Single); overload;
constructor Create(const APoint1, APoint2: TPoint3D; NormalizeBox: Boolean = False); overload;
constructor Create(const ABox: TBoundingBox; NormalizeBox: Boolean = False); overload;
constructor Create(const Points: TArray<TPoint3D>); overload;
constructor Create(const Points: PPoint3D; const PointCount: Integer); overload;

C++

__fastcall TBoundingBox(const System::Math::Vectors::TPoint3D &AnOrigin)/* overload */;
__fastcall TBoundingBox(const System::Math::Vectors::TPoint3D &AnOrigin, const float Width, const float Height, const float Depth)/* overload */;
__fastcall TBoundingBox(const float Left, const float Top, const float Near, const float Right, const float Bottom, const float Far)/* overload */;
__fastcall TBoundingBox(const System::Math::Vectors::TPoint3D &APoint1, const System::Math::Vectors::TPoint3D &APoint2, bool NormalizeBox)/* overload */;
__fastcall TBoundingBox(const TBoundingBox &ABox, bool NormalizeBox)/* overload */;
__fastcall TBoundingBox(const System::DynamicArray<System::Math::Vectors::TPoint3D> Points)/* overload */;
__fastcall TBoundingBox(const System::Math::Vectors::PPoint3D Points, const int PointCount)/* overload */;
TBoundingBox() {}

プロパティ

種類 可視性 ソース ユニット
constructor public
FMX.Types3D.pas
FMX.Types3D.hpp
FMX.Types3D TBoundingBox


説明

TBoundingBox のインスタンスを作成します。

次のように、境界ボックスの作成に使用できるいくつかの異なるシグネチャが用意されています。

パラメータ 説明
  • AnOrigin頂点となる TPoint3D インスタンス。
  • Width: 任意指定です。TBoundingBox インスタンスの幅。
  • Height: 任意指定です。TBoundingBox インスタンスの高さ。
  • Depth: 任意指定です。TBoundingBox インスタンスの奥行き。

TopLeftNear の値を指定の AnOrigin に設定します。BottomRightFar の値を指定の WidthHeightDepth から計算します。WidthHeightDepth を指定しない場合、BottomRightFarTopLeftNear と同じです。

TopLeftNear 隅と BottomRightFar 隅を定義する座標から TBoundingBox インスタンスを作成します。

  • APoint1TopLeftNear 隅を表す TPoint3D インスタンス。
  • APoint2BottomRightFar 隅を表す TPoint3D インスタンス。
  • NormalizeBox: 任意指定です。コンストラクタで境界ボックスを作成後に正規化するかどうかを指定するフラグ。デフォルトは False

TopLeftNear 隅と BottomRightFar 隅を表す 2 つのから TBoundingBox インスタンスを作成し、状況に応じて、その新しい TBoundingBox インスタンスを正規化します。

  • ABoxTBoundingBox のインスタンス。
  • NormalizeBox: 任意指定です。コンストラクタで境界ボックスを作成後に正規化するかどうかを指定するフラグ。デフォルトは False

既存の境界ボックスから TBoundingBox インスタンスを作成し、状況に応じて、その新しい TBoundingBox インスタンスを正規化します。

  • Pointsポイント クラウドの配列か、TPoint3D 型の変数を指すポインタのどちらか)。
  • PointCount: 任意指定です。Points をポインタとして指定した場合は、このパラメータを指定する必要があります。

指定されたパラメータを使用して境界ボックスの 2 つの隅を定義したあと、2 つのから TBoundingBox インスタンスを作成するコンストラクタを呼び出します。

関連項目