Just Cause 2: Multiplayer
Website
Home
/
Lua
/
Shared
/
Vector3
/
Functions
/
DistanceSqr2D
Returns
number
Prototype
Vector3:DistanceSqr2D(Vector3
b
)
Description
Calculates the squared 2D distance between the subject and
b
ignoring the y-axis value.
Additional Notes
This function is faster than
Vector:Distance2D()
, as no square root is required.