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 |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Info|Function|Client|1.0}} | {{Info|Function|Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Get the distance between points squared in relation to the three dimensions.}} | ||
{{FuncSyntax|GetDistanceSquared3D(x, y, z, x2, y2, z2)}} | {{FuncSyntax|GetDistanceSquared3D(x, y, z, x2, y2, z2)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|x| | {{FuncParam|x|x of the first point.}} | ||
{{FuncParam|y| | {{FuncParam|y|y of the first point.}} | ||
{{FuncParam|z| | {{FuncParam|z|z of the first point.}} | ||
{{FuncParam|x2| | {{FuncParam|x2|x of the second point.}} | ||
{{FuncParam|y2| | {{FuncParam|y2|y of the second point.}} | ||
{{FuncParam|z2| | {{FuncParam|z2|z of the second point.}} | ||
{{FuncReturnValue| | {{FuncReturnValue|The square of the distance between the 2 points.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
__EDIT_ME__ | __EDIT_ME__ | ||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
* [[GetDistance2D]] | |||
* [[GetDistanceSquared3D]] |
Latest revision as of 12:25, 2 September 2020
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__