tinymist_std::typst::foundations::calc

Function atan2

pub fn atan2(x: Num, y: Num) -> Angle
Expand description

Calculates the four-quadrant arctangent of a coordinate.

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

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