FMX.Types3D.TMeshData.RayCastIntersect

From RAD Studio API Documentation
Jump to: navigation, search

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 */;

Properties

Type Visibility Source Unit Parent
function public
FMX.Types3D.pas
FMX.Types3D.hpp
FMX.Types3D TMeshData

Description

Returns whether the given ray intersects the 3D surface designated by Width, Height, and Depth.

RayCastIntersect also returns the results of the intersection in the Intersection parameter.

See Also