FMX.Types3D.RayCastTriangleIntersect

De RAD Studio API Documentation
Aller à : navigation, rechercher

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);

Propriétés

Type Visibilité  Source Unité  Parent
function public
FMX.Types3D.pas
FMX.Types3D.hpp
FMX.Types3D FMX.Types3D

Description

Renvoie si le rayon donné intersecte le triangle construit à partir des trois sommets donnés.

RayCastTriangleIntersect renvoie True si le rayon donné par sa position et sa direction intersecte le triangle construit à partir des trois sommets donnés, False sinon. Si True, la méthode RayCastTriangleIntersect renvoie, dans le paramètre Intersection, l'intersection 3D du rayon et du triangle.

Voir aussi