FVector2D::Distance

Distance between two 2D points.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Math/Vector2D.h"

Syntax

static float Distance
(
    const FVector2D & V1,
    const FVector2D & V2
)

Remarks

Distance between two 2D points.

Returns

The distance between two 2D points.

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