asp.net.ph

Math.Atan2 Method

System Namespace   Math Class


Returns the angle whose tangent is the quotient of two specified numbers.

[ VB ]
Public Shared Function Atan2 ( _
   ByVal y As Double, _
   ByVal x As Double _
) As Double

[ C# ]
public static double Atan2 (
   double y,
   double x
);

[ C++ ]
public: static double Atan2 (
   double y,
   double x
);

[ JScript ]
public static function Atan2 (
   y : double,
   x : double
) : double;

Parameters

y
The y coordinate of a point.
x
The x coordinate of a point.

Return Value

An angle, q, measured in radians, such that -π < q ≤ π, and tan ( q ) = y/ x, where ( x, y ) is a point in the Cartesian plane. Observe the following:

Remarks

The return value 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 ) .

See Also

Math Members Skip Navigation Links


Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note