GetDistance2D
From Onset Developer Wiki
Description
Calculates the distance between 2 points.
Syntax
GetDistance2D(x, y, x2, y2)
Parameters
- x
x of the first point. - y
y of the first point. - x2
x of the second point. - y2
y of the second point.
Return Value
- The distance between the 2 points.
Example
<syntaxhighlight lang="Lua"> -- code <syntaxhighlight>