scale

fun scale(factor: Float, res: Vec3)

Multiplies all components of the given vector with the given scalar @factor.

Since

1.2

Parameters

factor

the scalar factor

res

return location for the result vector