GetDistanceSquared3D: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|GetDistanceSquared3D(x, y, z, x2, y2, z2)}} {{FuncParameters}} {{FuncParam|x|__EDIT_ME__}} {{FuncP...")
 
No edit summary
Line 6: Line 6:


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|x|__EDIT_ME__}}
{{FuncParam|x|x of the first point.}}
{{FuncParam|y|__EDIT_ME__}}
{{FuncParam|y|y of the first point.}}
{{FuncParam|z|__EDIT_ME__}}
{{FuncParam|z|z of the first point.}}
{{FuncParam|x2|__EDIT_ME__}}
{{FuncParam|x2|x of the second point.}}
{{FuncParam|y2|__EDIT_ME__}}
{{FuncParam|y2|y of the second point.}}
{{FuncParam|z2|__EDIT_ME__}}
{{FuncParam|z2|z of the second point.}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|The square of the distance between the 2 points.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
-- code
</syntaxhighlight>


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

Revision as of 13:59, 16 November 2019

GetDistanceSquared3D

Type: Function
Context: Client
Introduced: v1.0

Description

__EDIT_ME__

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

-- code

See also