Skip to content

subtract(... , ...)

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[];

Subtracts one three-dimensional vector from another.

ParameterTypeDescription
lnumber[]The vector being subtracted from.
rnumber[]The vector subtracted.

The resulting three-dimensional vector.