Vec3.scale

void scale(float factor, out graphene.vec3.Vec3 res)

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

Parameters

factorthe scalar factor
resreturn location for the result vector