Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
Class
System.Math Syntax
Dim result As Double = Math.Atan2(y, x)
Description
The 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 Glance
This is a shared member of the System.Math class, so it can be used without an instance. Version Differences
The Atan2 function does not exist in VB 6. See Also
Acos Function, Asin Function, Atan Function |
Категории