scale


Description:

[ Version ( since = "1.2" ) ]
public Vec2 scale (float factor)

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

Parameters:

this

a Vec2

factor

the scalar factor

res

return location for the result vector