Skip to content

aninest root / Vec2 / mulScalar

mulScalar()

ts
function mulScalar(v, s): Vec2

Multiplies a vector v by a scalar s immutably.

Parameters

v: Vec2

s: number

Returns

Vec2

A new vector.

Defined in

Utils/vec2.ts:95