GetDistance2D: Difference between revisions
From Onset Developer Wiki
No edit summary |
X7airworker (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Server & Client|1.0}} | {{Info|Function|Server & Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Calculates the distance between 2 points.}} | ||
{{FuncSyntax|GetDistance2D(x, y, x2, y2)}} | {{FuncSyntax|GetDistance2D(x, y, x2, y2)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|x| | {{FuncParam|x|x of the first point.}} | ||
{{FuncParam|y| | {{FuncParam|y|y of the first point.}} | ||
{{FuncParam|x2| | {{FuncParam|x2|x of the second point.}} | ||
{{FuncParam|y2| | {{FuncParam|y2|y of the second point.}} | ||
{{FuncReturnValue| | {{FuncReturnValue|The distance between the 2 points.}} | ||
== Example == | == Example == | ||
Line 17: | Line 17: | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
[[GetDistance3D]] | |||
[[GetDistanceSquared3D]] |
Revision as of 19:15, 28 September 2019
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__