You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Physics Library > length

19.2.9 length

len = physics.Vect:length()

Parameter

Type

Description

self

in physics.Vect

The input vector

len

out number

The length of vector self

Returns the magnitude of self.

Introduced in platform.apiLevel = '2.0'