Vec4:length

Edit

Returns the length of the vector.

length = Vec4:length()

Arguments

None

Returns

NameTypeDescription
lengthnumber The length of the vector.

Notes

The length is equivalent to this:

math.sqrt(v.x * v.x + v.y * v.y + v.z * v.z + v.w * v.w)

See also