Skip to content

scalarMultiply(... , ...)

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.

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

Multiplies a three-dimensional vector by a single value.

ParameterTypeDescription
lnumber[]The vector to multiply.
rnumberThe value to multiply by.

The resulting three-dimensional vector.