linearly v0.32.0Docs


linearly v0.32.0 / vec4 / atan2

Function: atan2()

atan2(y, x): vec4

Returns the arc-tangent of the parameters.

Parameters

y: vec4

the values of the y-coordinate

x: vec4

the values of the x-coordinate

Returns

vec4

the angle in degrees

See

https://thebookofshaders.com/glossary/?search=atanopen in new window

Defined in

src/vec4.ts:847open in new window