Vec3.dot

Returns the dot product of a vector.

Kind: Function

Environments: Game, Terrain

Game

vec3:dot( v2 )

Open the full Game reference

Parameters:

Name Type Description
v1 Vec3 The first vector.
v2 Vec3 The second vector.

Returns:

Type Description
number The dot product.

Terrain

vec3:dot( v2 )

Open the full Terrain reference

Parameters:

Name Type Description
v1 Vec3 The first vector.
v2 Vec3 The second vector.

Returns:

Type Description
number The dot product.