linearly v0.32.0Docs


linearly v0.32.0 / vec2 / cos

Function: cos()

cos(deg): vec2

Returns the cosine of a number.

Parameters

deg: vec2

A angle in degrees

Returns

vec2

Defined in

src/vec2.ts:743open in new window