Edit

Share via


Double.Atan2Pi(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.

Computes the arc-tangent for the quotient of two values and divides the result by pi.

C#
public static double Atan2Pi(double y, double x);

Parameters

y
Double

The y-coordinate of a point.

x
Double

The x-coordinate of a point.

Returns

The arc-tangent of y divided-by x, divided by pi.

Implements

Remarks

This computes arctan(y / x) / π in the interval [-1, +1].

Applies to

Product Versions
.NET 7, 8, 9, 10