FVector2DistanceTo Method

Return the distance between the source and target points.

Definition

Namespace: Geometry
Assembly: Geometry (in Geometry.dll) Version: 26.3006.2520
C#
public static float DistanceTo(
	FVector2 source,
	FVector2 target
)

Parameters

source  FVector2
Reference to the source point to consider.
target  FVector2
Reference to the target point to consider.

Return Value

Single
The distance between the two given points, if valid. Otherwise, 0.

See Also