Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Math > API/Runtime/Core/Math/FMath > API/Runtime/Core/Math/FMath/RayPlaneIntersection
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include | #include "Math/UnrealMathUtility.h" |
template<typename FReal>
static UE::Math::TVector< FReal > RayPlaneIntersection
&40;
const UE::Math::TVector< FReal > & RayOrigin,
const UE::Math::TVector< FReal > & RayDirection,
const UE::Math::TPlane< FReal > & Plane
&41;
Remarks
Find the intersection of a ray and a plane. The ray has a start point with an infinite length. Assumes that the line and plane do indeed intersect; you must make sure they're not parallel before calling. The point of intersection between the ray and the plane.
Parameters
| Name | Description |
|---|---|
| RayOrigin | The start point of the ray |
| RayDirection | The direction the ray is pointing (normalized vector) |
| Plane | The plane to intersect with |