Skip to content

add(... , ...)

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.

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

Adds two three-dimensional vectors together.

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

The resulting three-dimensional vector.