math.dot

Syntax

f = math.dot(v1,v2)

Get the dot product of vectors. The vectors must be of the same size.

Returns:

f - dot product

Arguments:

v1 - vector

v2 - vector