FMX.Types3D.RayCastPlaneIntersect
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);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Types3D.pas FMX.Types3D.hpp |
FMX.Types3D | FMX.Types3D |
Description
Returns whether the given ray intersects the given plane.
RayCastPlaneIntersect returns True if the ray given through its position and direction intersects the given plane, False otherwise. If True, the RayCastPlaneIntersect method returns, in the Intersection
parameter, the 3D intersection of the ray and plane.