But using polar, the angle always starts from the x axis and counterclockwise :/
That is true. But the angtof function will correctly translate the angle. See the test function in my previous post.
As roy has correctly noted, observe the following:
_$
(setvar 'angbase
(/ pi
2.0))1.5708
1
1.5708
1.39626
With
ANGBASE set to pi/2 radians (90 degrees), 0.0 rad/deg is in the positive y-axis direction; and with
ANGDIR set to 1, angles increase in the clockwise direction.
As you can see from the above console output,
angtof respects these system variable settings, with an input of 0.0 returning pi/2 radians or 90 degrees, and a positive angle decreases the angle in radians returned by
angtof.