FMX.Types3D.TMeshData.RayCastIntersect
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 */;
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
function | public | FMX.Types3D.pas FMX.Types3D.hpp |
FMX.Types3D | TMeshData |
Beschreibung
Gibt zurück, ob der angegebene Strahl die durch Width
, Height
und Depth
festgelegte 3D-Oberfläche schneidet.
RayCastIntersect gibt im Parameter Intersection
auch die Ergebnisse der Schnittmenge zurück.