FMX.Types3D.RayCastPlaneIntersect

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function RayCastPlaneIntersect(const RayPos, RayDir, PlanePoint, PlaneNormal: TPoint3D; var Intersection: TPoint3D): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall RayCastPlaneIntersect(const System::Math::Vectors::TPoint3D &RayPos, const System::Math::Vectors::TPoint3D &RayDir, const System::Math::Vectors::TPoint3D &PlanePoint, const System::Math::Vectors::TPoint3D &PlaneNormal, 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 plan donné.

RayCastPlaneIntersect renvoie True si le rayon donné par sa position et sa direction intersecte le plan donné, False sinon. Si True, la méthode RayCastPlaneIntersect renvoie, dans le paramètre Intersection, l'intersection 3D du rayon et du plan.

Voir aussi