Math.length

From GiderosMobile
Revision as of 23:33, 27 April 2022 by MoKaLux (talk | contribs)

Available since: Gideros 2020.9
Class: math

Description

Returns the length of a vector.

(number) = math.length(x,y,z)
(number) = math.length({x,y,z})
(number) = math.length({x=x,y=y,z=z})

Parameters

x: (number) x component of the vector
y: (number) y component of the vector
z: (number) z component of the vector optional

Return values

Returns (number) the length of the vector