@copper.hat Regarding your angle convention question
math.stackexchange.com/q/1504483 I suspect that your guess is correct, that it comes from astronomy. If you look "down" on the Solar System from the north, most motions are anti-clockwise. And when we draw planet orbits, we almost always draw the semi-major axis as horizontal, generally with the Sun at the origin and the perihelion on the +X axis.