# shz_cpolarf

Source: https://sh4zam.com/api/complex/shz_cpolarf/

> Returns a complex number with a magnitude of r, and a phase angle of theta (in radians)

```c
SHZ_INLINE shz_complex_t shz_cpolarf(float r, float theta) SHZ_NOEXCEPT;
```

Returns a complex number with a magnitude of `r`, and a phase angle of `theta` (in radians).

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `r` | `float` |  |
| `theta` | `float` |  |

## Returns

`shz_complex_t`

## Availability

- **C++ equivalent:** [`shz::cpolarf`](https://sh4zam.com/api/cpp/#shzcpolarf)
- **Type-generic form:** none
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_complex.h:64`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_complex.h#L64)
- **Module:** [Complex](https://sh4zam.com/api/complex/), section "Basic"
