Skip to content

dot(... , ...)

Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.

dot(l : number[], r : number[]) : number;

Calculates the dot product of two three-dimensional vectors.

ParameterTypeDescription
lnumber[]The first vector.
rnumber[]The second vector.

The resulting dot product as a single number.