GetDistance2D: Difference between revisions

From Onset Developer Wiki
28days (talk | contribs)
No edit summary
No edit summary
Line 15: Line 15:
== Example ==
== Example ==
<syntaxhighlight lang="Lua">
<syntaxhighlight lang="Lua">
-- code
__EDIT_ME__
</syntaxhighlight>
</syntaxhighlight>



Revision as of 12:26, 2 September 2020

GetDistance2D

Type: Function
Context: Server & Client
Introduced: v1.0

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

__EDIT_ME__

See also