ClassSystem.Math SyntaxDim result As Double = Math.Atan2(y, x)
DescriptionThe Atan2 function returns the arctangent of the ratio x/y in radians. This is the angle in the Cartesian plane formed by the x-axis and a vector starting from the origin (0,0) and terminating at the point (x, y). More specifically, the return value satisfies the following:
Usage at a GlanceThis is a shared member of the System.Math class, so it can be used without an instance. Version DifferencesThe Atan2 function does not exist in VB 6. See AlsoAcos Function, Asin Function, Atan Function |