linearly v0.32.0Docs


linearly v0.32.0 / vec2 / of

Function: of()

of(x, y): vec2

Creates a new vector from given elements

Parameters

x: number

y: number = x

Returns

vec2

Defined in

src/vec2.ts:28open in new window