Return to the Tracker forum Login to post to this thread
Flipped parameters for atan2
Louis S
1 Posts
Hi! When I look at the available mathematical functions in tracker (which uses the OSP parser), the documentation describes atan2(x, y). However, atan2 is conventionally called by atan2(y, x). This line in OSP (https://github.com/OpenSourcePhysics/osp/blob/master/src/org/opensourcephysics/ejs/control/value/ParserSuryono.java#L1093) seems to indicate that it should be atan2(y, x) in the documentation. Thoughts?