FMath::LinePlaneIntersection

Find the intersection of a line and an offset plane.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h

Include

#include "Math/UnrealMathUtility.h"

Source

/Engine/Source/Runtime/Core/Public/Math/Vector.h

Syntax

static FVector LinePlaneIntersection
(
    const FVector & Point1,
    const FVector & Point2,
    const FVector & PlaneOrigin,
    const FVector & PlaneNormal
)

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.

FMath inline functions

Returns

The point of intersection between the line and the plane.

Parameters

Parameter

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss