DoxigAlpha

arg

Returns the angular component (in radians) of z.

Function parameters

Parameters

#
z:anytype

Returns the angular component (in radians) of z.

Functions

#
arg
Returns the angular component (in radians) of z.

Source

Implementation

#
pub fn arg(z: anytype) @TypeOf(z.re, z.im) {
    return math.atan2(z.im, z.re);
}