Available since Version 1.0.
Calculates the distance between two points in 2D space.
Syntax
Engine.VectorUtil.GetDistance2D( pointA, pointB )Arguments
Return Values
- (number): The distance between the two points.
Examples
local pointA = Engine.Vector3(1, 2, 3)
local pointB = Engine.Vector3(4, 5, 6)
local distance = Engine.VectorUtil.GetDistance2D(pointA, pointB)