Vec2.scale

void scale(float factor, out graphene.vec2.Vec2 res)

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

Parameters

factorthe scalar factor
resreturn location for the result vector