Vec3.length2

Returns the squared length of the vector.

Kind: Function

Environments: Game, Terrain

Game

vec3:length2(  )

Open the full Game reference

Parameters:

Name Type Description
vector Vec3 The vector.

Returns:

Type Description
number The squared length of the vector.

Terrain

vec3:length2(  )

Open the full Terrain reference

Parameters:

Name Type Description
vector Vec3 The vector.

Returns:

Type Description
number The squared length of the vector.