Platforms to show: All Mac Windows Linux Cross-Platform

ATan2MBS(x as Double, y as Double) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method Math MBS Util Plugin 5.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This function computes the principal value of the arc tangent of y/x, using the signs of both arguments to determine the quadrant of the return value.
Example
MsgBox str(ATan2MBS(3,4))

atan2(+-0, -0) returns +-pi.
atan2(+-0, +0) returns +-0.
atan2(+-0, x) returns +-pi for x < 0.
atan2(+-0, x) returns +-0 for x > 0.
atan2(y, +-0) returns -pi/2 for y > 0.
atan2(+-y, -infinity) returns +-pi for finite y > 0.
atan2(+-y, +infinity) returns +-0 for finite y > 0.
atan2(+-infinity, +x) returns +-pi/2 for finite x.
atan2(+-infinity, -infinity) returns +-3*pi/4.
atan2(+-infinity, +infinity) returns +-pi/4.

Blog Entries

The items on this page are in the following plugins: MBS Util Plugin.


The biggest plugin in space...