TypstDocumentation

calc.atan2

Calculate the four-quadrant arctangent of a coordinate.

The arguments are (x, y), not (y, x).

Example

#calc.atan2(1, 1) \
#calc.atan2(-2, -3)
Preview

Parameters
Question mark

x
integer or float
RequiredPositional
Question mark

The X coordinate.

y
integer or float
RequiredPositional
Question mark

The Y coordinate.