FMX.Types3D.RayCastTriangleIntersect

From RAD Studio API Documentation
Jump to: navigation, search

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

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 triangle built from the three given vertices.

RayCastTriangleIntersect returns True if the ray given through its position and direction intersects the triangle built from the three given vertices, False otherwise. If True, the RayCastTriangleIntersect method returns, in the Intersection parameter, the 3D intersection of the ray and triangle.

See Also