# shz_quat_equal

Source: https://sh4zam.com/api/quat/shz_quat_equal/

```c
SHZ_INLINE bool shz_quat_equal(shz_quat_t a, shz_quat_t b) SHZ_NOEXCEPT;
```

Returns true if the two given quaternions are considered equal based on either absolute or relative tolerance.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `a` | `shz_quat_t` |  |
| `b` | `shz_quat_t` |  |

## Returns

`bool`

## Availability

- **C++ equivalent:** none (call the C function from C++)
- **Type-generic form:** none
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_quat.h:63`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_quat.h#L63)
- **Module:** [Quaternion](https://sh4zam.com/api/quat/), section "Initialization"
