FMX.Types3D.RayCastPlaneIntersect

提供: RAD Studio API Documentation
移動先: 案内検索

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

プロパティ

種類 可視性 ソース ユニット
function public
FMX.Types3D.pas
FMX.Types3D.hpp
FMX.Types3D FMX.Types3D

説明

指定された光線が指定された平面と交差するかどうかを返します。


RayCastPlaneIntersect は、位置と方向で指定された光線が指定された平面と交差する場合には True を、交差しない場合には False を返します。True の場合、RayCastPlaneIntersect メソッドは、光線と平面の 3D 交差箇所を Intersection パラメータに格納して返します。

関連項目