Skip to content

aninest root / Vec2 / divScalar

divScalar()

ts
function divScalar(v, s): Vec2

Divides a vector v by a scalar s immutably.

Parameters

v: Vec2

s: number

Returns

Vec2

A new vector.

Defined in

Utils/vec2.ts:140