Math.Atan2(Double, Double) Method

Definition

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,&nbsp;theta) in polar coordinates that corresponds to the point (x,&nbsp;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.

Applies to