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


Introduced in

Version:3.9.2

Description

Description:

Returns the squared distance between two vectors.

Syntax

Syntax:

[vector1, vector2] call fn_vbs_vectorDistanceSqr

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

Examples

Examples:realDistanceSqr = [positionASL1, positionASL2] call fn_vbs_vectorDistanceSqr

Additional Information

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