Vec2.scale

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

class Vec2
void
scale

Parameters

factor float

the scalar factor

res graphene.vec2.Vec2

return location for the result vector