FMX.Types3D.RayCastTriangleIntersect
Delphi
function RayCastTriangleIntersect(const RayPos, RayDir, Vertex1, Vertex2, Vertex3: TPoint3D;
var Intersection: TPoint3D): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall RayCastTriangleIntersect(const System::Math::Vectors::TPoint3D &RayPos, const System::Math::Vectors::TPoint3D &RayDir, const System::Math::Vectors::TPoint3D &Vertex1, const System::Math::Vectors::TPoint3D &Vertex2, const System::Math::Vectors::TPoint3D &Vertex3, System::Math::Vectors::TPoint3D &Intersection);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | FMX.Types3D.pas FMX.Types3D.hpp |
FMX.Types3D | FMX.Types3D |
説明
指定された光線が指定された 3 つの頂点で構成される三角形と交差するかどうかを返します。
RayCastTriangleIntersect は、位置と方向で指定された光線が指定された 3 つの頂点で構成される三角形と交差する場合には True を、交差しない場合には False を返します。True の場合、RayCastTriangleIntersect メソッドは、光線と三角形の 3D 交差箇所を Intersection
パラメータに格納して返します。