linearly v0.32.0Docs


linearly v0.32.0 / scalar / atan

Function: atan()

atan(y, x?): number

Returns the arc-tangent of the parameters. If x is not provided, y is regarded as a value of y/x.

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:398open in new window