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

19.2.7 dot

dotprod = physics.Vect:dot(vec)

Parameter

Type

Description

self

in physics.Vect

The input vector

vec

in physics.Vect

The other vector

dotprod

out number

The scalar dot product of self and vec

Returns the scalar dot product of self and vec.

Introduced in platform.apiLevel = '2.0'