FMX.Types3D.TMeshData.RayCastIntersect

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

Delphi

function RayCastIntersect(const Width, Height, Depth: Single; const RayPos, RayDir: TPoint3D;  var Intersection: TPoint3D): Boolean; overload;
function RayCastIntersect(const RayPos, RayDir: TPoint3D; var Intersection: TPoint3D): Boolean; overload;

C++

bool __fastcall RayCastIntersect(const float Width, const float Height, const float Depth, const System::Math::Vectors::TPoint3D &RayPos, const System::Math::Vectors::TPoint3D &RayDir, System::Math::Vectors::TPoint3D &Intersection)/* overload */;
bool __fastcall RayCastIntersect(const System::Math::Vectors::TPoint3D &RayPos, const System::Math::Vectors::TPoint3D &RayDir, System::Math::Vectors::TPoint3D &Intersection)/* overload */;

プロパティ

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

説明

指定された光線が、WidthHeight、および Depth で設定される 3D 表面と交差するかどうかを返します。

RayCastIntersect は、交差の結果も Intersection パラメータに返します。

関連項目