TVector2::Distance

Distance between two 2D points.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "Math/Vector2D.h"

Syntax

static T Distance
(
    const TVector2< T > & V1,
    const TVector2< T > & 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.