GetDistance3D: Difference between revisions

From Onset Developer Wiki
28days (talk | contribs)
No edit summary
28days (talk | contribs)
No edit summary
Line 11: Line 11:
{{FuncParam|x2|x of the second point.}}
{{FuncParam|x2|x of the second point.}}
{{FuncParam|y2|y of the second point.}}
{{FuncParam|y2|y of the second point.}}
{{FuncParam|z2|u of the second point.}}
{{FuncParam|z2|z of the second point.}}


{{FuncReturnValue|The distance between the 2 points.}}
{{FuncReturnValue|The distance between the 2 points.}}
Line 18: Line 18:
<syntaxhighlight lang="Lua">
<syntaxhighlight lang="Lua">
-- code
-- code
<syntaxhighlight>
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
* [[GetDistanceSquared3D]]
* [[GetDistanceSquared3D]]
* [[GetDistance2D]]
* [[GetDistance2D]]

Revision as of 13:58, 16 November 2019

GetDistance3D

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

Description

Gets the distance between to 3 dimensional points.

Syntax

GetDistance3D(x, y, z, x2, y2, z2)

Parameters

  • x
    x of the first point.
  • y
    y of the first point.
  • z
    z of the first point.
  • x2
    x of the second point.
  • y2
    y of the second point.
  • z2
    z of the second point.

Return Value

  • The distance between the 2 points.

Example

-- code

See also