Page tree
Skip to end of metadata
Go to start of metadata


Introduced in

Version:3.9.2

Description

Description:

Returns the distance between two vectors.

In a performance demanding situation, it is recommended to use fn_vbs_vectorDistanceSqr instead.

Syntax

Syntax:

[vector1, vector2] call fn_vbs_vectorDistance

Parameters:
  • vector1: Array - First vector.
  • vector2: Array - Second vector.
Return Value:Number - Distance between two vectors.

Examples

Examples:realDistance = [positionASL1, positionASL2] call fn_vbs_vectorDistance

Additional Information

See also: fn_vbs_vectorDistanceSqr, fn_vbs_magnitude, fn_vbs_magnitudeSqr, fn_vbs_distance2D, fn_vbs_distance2Dsqr, distance
Multiplayer:
Problems: