Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/GeometryCore/Public/FrameTypes.h |
Include |
#include "FrameTypes.h" |
bool RayPlaneIntersection
(
const TVector< RealType > & RayOrigin,
const TVector< RealType > & RayDirection,
int PlaneNormalAxis,
UE::Math::TVector< RealType > & HitPointOut
) const
Compute intersection of ray with plane defined by frame origin and axis as normal
true if ray intersects plane and HitPointOut is valid
Parameter |
Description |
---|---|
RayOrigin |
origin of ray |
RayDirection |
direction of ray |
PlaneNormalAxis |
which axis of frame to use as plane normal |
HitPointOut |
intersection point, or invalid point if ray does not hit plane or is parallel to plane |