Edit

Share via


Single.Atan2(Single, Single) Method

Definition

Computes the arc-tangent of the quotient of two values.

C#
public static float Atan2(float y, float x);

Parameters

y
Single

The y-coordinate of a point.

x
Single

The x-coordinate of a point.

Returns

The arc-tangent of y divided-by x.

Implements

Remarks

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

Applies to

Product Versions
.NET 7, 8, 9, 10