linearly v0.32.0Docs


linearly v0.32.0 / vec2 / rad

Function: rad()

rad(deg): vec2

Alias for vec2.radians

Parameters

deg: vec2

The input vec2 in degrees

Returns

vec2

The radians equivalent of the input

Shorthands

Defined in

src/vec2.ts:726open in new window