FMath::LinePlaneIntersection

Find the intersection of a line and a 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/Plane.h

Syntax

static FVector LinePlaneIntersection
(
    const FVector & Point1,
    const FVector & Point2,
    const FPlane & Plane
)

Remarks

Find the intersection of a line and a plane. Assumes that the line and plane do indeed intersect; you must make sure they're not parallel before calling.

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

Plane

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