# shz_sincos_t

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

```c
typedef struct shz_sincos {
    float sin;  //!< sinf() approximation for the angle
    float cos;  //!< cosf() approximation for the angle
} shz_sincos_t;
```

Pair representing the sine and cosine of a given angle.

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `sin` | `float` | sinf() approximation for the angle |
| `cos` | `float` | cosf() approximation for the angle |

## Details

The SH4 provides a single instruction, `FSCA`, for retrieving fast approximations of **both** the sine and cosine of a given angle. As such, when you need both values, it's most efficient to grab them both at once as a pair using this structure than it is to retrieve them separately.

## Availability

- **C++ equivalent:** [`shz::sincos`](https://sh4zam.com/api/cpp/sincos/)
- **Back-ends:** n/a (not a function)
- **Defined in:** [`sh4zam/shz_trig.h:57`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_trig.h#L57)
- **Module:** [Trigonometry](https://sh4zam.com/api/trig/), section "Types"

## See also

[`shz_sincosf`](https://sh4zam.com/api/trig/shz_sincosf/), [`shz_sincosf_deg`](https://sh4zam.com/api/trig/shz_sincosf_deg/)
