atan2(a: number, b: number) → f64

Category: [math](builtinsmath)_

Arctangent of a/b in radians, using the signs of both to pick the quadrant.

ParameterTypeDescriptionRemarks
anumberThe first operand.
bnumberThe second operand.
returnsf64The result, as an f64.
wcl
atan2(1.0, 1.0)   // angle of the vector (1, 1) → 0.7853981633974483