FMX.Types3D.TContext3D.Pick

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Pick(X, Y: Single; const AProj: TProjection; var RayPos, RayDir: TVector3D);

C++

void __fastcall Pick(float X, float Y, const TProjection AProj, System::Math::Vectors::TVector3D &RayPos, System::Math::Vectors::TVector3D &RayDir);

Properties

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

Description

Computes the pick ray vector.

The pick ray vector is used when selecting 3D objects using the mouse.

X and Y represent the coordinates from which the pick ray vector is calculated.

AProj represents the projection.

RayPos is the position of the pick ray vector, and RayDir--its direction.

See Also