# shz_atan2f

Source: https://sh4zam.com/api/trig/shz_atan2f/

> Computes arctangent of y / x, using the signs of arguments to determine correct quadtrant. Equivalent to C's atan2f()

```c
SHZ_INLINE float shz_atan2f(float y, float x) SHZ_NOEXCEPT;
```

Computes arctangent of `y / x`, using the signs of arguments to determine correct quadtrant. Equivalent to C's atan2f().

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `y` | `float` |  |
| `x` | `float` |  |

## Returns

`float`

## Availability

- **C++ equivalent:** [`shz::atan2f`](https://sh4zam.com/api/cpp/#shzatan2f)
- **Type-generic form:** none
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_trig.h:157`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_trig.h#L157)
- **Module:** [Trigonometry](https://sh4zam.com/api/trig/), section "Inverse Functions"
