GetDistanceSquared3D: Difference between revisions

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



Latest revision as of 12:25, 2 September 2020

GetDistanceSquared3D

Type: Function
Context: Client
Introduced: v1.0

Description

Get the distance between points squared in relation to the three dimensions.

Syntax

GetDistanceSquared3D(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 square of the distance between the 2 points.

Example

__EDIT_ME__

See also