FMath::GetTForSegmentPlaneIntersect

Returns the time (t) of the intersection of the passed segment and a plane (could be <0 or >1)

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/Private/Math/UnrealMath.cpp

Syntax

static float GetTForSegmentPlaneIntersect
(
    const FVector & StartPoint,
    const FVector & EndPoint,
    const FPlane & Plane
)

Remarks

Returns the time (t) of the intersection of the passed segment and a plane (could be <0 or >1)

Returns

time(T) of intersection

Parameters

Parameter

Description

StartPoint

start point of segment

EndPoint

end point of segment

Plane

plane to intersect with

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