Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Math > API/Runtime/Core/Math/FMath > API/Runtime/Core/Math/FMath/LinePlaneIntersection
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 > LinePlaneIntersection
&40;
const UE::Math::TVector< FReal > & Point1,
const UE::Math::TVector< FReal > & Point2,
const UE::Math::TVector< FReal > & PlaneOrigin,
const UE::Math::TVector< FReal > & PlaneNormal
&41;
Remarks
Find the intersection of a line and an offset plane. 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 line and the plane.
Parameters
| Name | Description |
|---|---|
| Point1 | the first point defining the line |
| Point2 | the second point defining the line |
| PlaneOrigin | the origin of the plane |
| PlaneNormal | the normal of the plane |