Vec2.scale

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

class Vec2
void
scale
(
float factor
,
out Vec2 res
)

Parameters

factor float

the scalar factor

res Vec2

return location for the result vector

Meta