FVector::PointsAreNear

Compare two points and see if they're within specified distance.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Math/Vector.h"

Syntax

static bool PointsAreNear
(
    const FVector & Point1,
    const FVector & Point2,
    float Dist
)

Remarks

Compare two points and see if they're within specified distance.

Returns

Whether two points are within the specified distance. Uses fast distance approximation (linear per-component distance).

Parameters

Parameter

Description

Point1

First vector.

Point2

Second vector.

Dist

Specified distance.

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