FMX.Controls3D.TControl3D.RayCastIntersect

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function RayCastIntersect(const RayPos, RayDir: TPoint3D; var Intersection: TPoint3D): Boolean; virtual;

C++

virtual bool __fastcall RayCastIntersect(const System::Math::Vectors::TPoint3D &RayPos, const System::Math::Vectors::TPoint3D &RayDir, System::Math::Vectors::TPoint3D &Intersection);

Properties

Type Visibility Source Unit Parent
function public
FMX.Controls3D.pas
FMX.Controls3D.hpp
FMX.Controls3D TControl3D

Description

Returns whether the ray casted intersects with the 3D control.

RayCastIntersect returns True if the ray casted intersects the 3D control, False otherwise.

RayPos and RayDir specify the position and direction of the ray to be casted and about which you want to know whether it intersects with the 3D control.

See Also