Dibaca dalam bahasa Inggeris Edit

Kongsi melalui


Single.Atan2Pi(Single, Single) Method

Definition

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

C#
public static float Atan2Pi(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, divided by pi.

Implements

Remarks

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

Applies to

Produk Versi
.NET 7, 8, 9, 10