UKismetMathLibrary::Vector_Distance2D

Euclidean distance between two points in the XY plane (ignoring Z).

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 float Vector_Distance2D
(
    FVector V1,
    FVector V2
)

Remarks

Euclidean distance between two points in the XY plane (ignoring Z).

Returns

The distance between two points in the XY plane.

Parameters

Parameter

Description

V1

The first point.

V2

The second point.

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