Page logoMath sketchbook

Documentation for atan2

Signature

atan2(y, x)

Description

The atan2() function calculates the angle (in radians) between the positive x-axis and the ray from the origin (0,0) to the point (x,y), for atan2(y,x).

Variants

  • atan2(scalar, scalar) -> scalar

Examples

See also