FMX.Types3D.RayCastEllipsoidIntersect

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

Delphi

function RayCastEllipsoidIntersect(const RayPos, RayDir, EllipsoidCenter: TPoint3D; const XRadius, YRadius, ZRadius: Single; var IntersectionNear, IntersectionFar: TPoint3D): Integer;

C++

extern DELPHI_PACKAGE int __fastcall RayCastEllipsoidIntersect(const System::Math::Vectors::TPoint3D &RayPos, const System::Math::Vectors::TPoint3D &RayDir, const System::Math::Vectors::TPoint3D &EllipsoidCenter, const float XRadius, const float YRadius, const float ZRadius, System::Math::Vectors::TPoint3D &IntersectionNear, System::Math::Vectors::TPoint3D &IntersectionFar);

プロパティ

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

説明

指定された光線が指定された楕円体図形と何度交差するかを返します。


RayCastEllipsoidIntersect は、位置と方向で指定された光線が指定された楕円体図形と何度交差するかを表す整数を返します。光線が楕円体と交差しない場合には、RayCastEllipsoidIntersect は 0 を返します。そうでなければ RayCastEllipsoidIntersect は 1(光線は楕円体と 1 点だけで交差する)または 2(光線は楕円体と 2 点で交差する、つまり、楕円体 3D 図形の表面に入って出る)を返します。

RayCastEllipsoidIntersect は、RayCastSphereIntersect を内部的に使用して、光線が楕円体 3D 図形と何度交差するかを判断します。

関連項目