13 Oct
2022
13 Oct
'22
8:42 a.m.
Hi,
How is atan2 called? I rolled my own as follows:
Is atan with two parameters supposed to behave like atan2?
At mp-math.mpxl:167 there is: vardef atan primary x = angle(1,x) enddef ; The MetaPost manual says: The angle operator takes a pair and computes the two-argument arctangent; i.e., angle is the inverse of the dir operator So it looks like "angle" is the function that you want for "atan2". Thanks, -- Max