# shz_quat_magnitude_sqr

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

```c
SHZ_INLINE float shz_quat_magnitude_sqr(shz_quat_t quat) SHZ_NOEXCEPT;
```

Returns the squared magnitude of the given quaternion.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `quat` | `shz_quat_t` |  |

## Returns

`float`

## Availability

- **C++ equivalent:** [`shz::quat::magnitude_sqr`](https://sh4zam.com/api/cpp/quat/#magnitude_sqr)
- **Type-generic form:** none
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_quat.h:174`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_quat.h#L174)
- **Module:** [Quaternion](https://sh4zam.com/api/quat/), section "Properties"
