Math.Atan2(Double, Double) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the angle theta from the conversion of rectangular
coordinates (x
, y
) to polar
coordinates (r, theta).
[Android.Runtime.Register("atan2", "(DD)D", "")]
public static double Atan2 (double y, double x);
[<Android.Runtime.Register("atan2", "(DD)D", "")>]
static member Atan2 : double * double -> double
Parameters
- y
- Double
the ordinate coordinate
- x
- Double
the abscissa coordinate
Returns
the theta component of the point (r, theta) in polar coordinates that corresponds to the point (x, y) in Cartesian coordinates.
- Attributes
Remarks
Java documentation for java.lang.Math.atan2(double, double)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.