UKismetMathLibrary::FindNearestPointsOnLineSegments

Find closest points between 2 segments.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h

Include

#include "Kismet/KismetMathLibrary.h"

Source

/Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.inl

Syntax

static void FindNearestPointsOnLineSegments
(
    FVector Segment1Start,
    FVector Segment1End,
    FVector Segment2Start,
    FVector Segment2End,
    FVector & Segment1Point,
    FVector & Segment2Point
)

Remarks

Find closest points between 2 segments.

Parameters

Parameter

Description

Segment1Start

Start of the 1st segment.

Segment1End

End of the 1st segment.

Segment2Start

Start of the 2nd segment.

Segment2End

End of the 2nd segment.

Segment1Point

Closest point on segment 1 to segment 2.

Segment2Point

Closest point on segment 2 to segment 1.

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