Mono Class Library: System.Math Overview | Members

System.Math.Atan Method

Returns the angle whose tangent is the specified double. [Edit]

public static double Atan (double d)

Parameters

d
A double that represents a tangent. [Edit]

Returns

A double containing the value of the angle, theta, measured in radians, for which d is the tangent, such that -pi/2 <= theta <= pi/2.

The following table specifies the return value if d is equal to double.NaN, double.NegativeInfinity, or double.PositiveInfinity .

Return ValueCondition
double.NaNd is equal to double.NaN.
-pi/2 rounded to double precision (-1.5707963267949)d is equal to double.NegativeInfinity.
pi/2 rounded to double precision (1.5707963267949)d is equal to double.PositiveInfinity.
[Edit]

Remarks

Note:

A positive return value represents a counterclockwise angle from the positive x-axis; a negative return value represents a clockwise angle.

Multiply the return value by 180/pi to convert from radians to degrees.

[Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0