linearly v0.32.0Docs


linearly v0.32.0 / scalar / atan2

Function: atan2()

atan2(y, x): number

Returns the arc-tangent of the parameters.

Parameters

y: number

the value of the y-coordinate

x: number

the value of the x-coordinate

Returns

number

the angle in degrees

See

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

Defined in

src/scalar.ts:413open in new window