# shz_quat_scale

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

```c
SHZ_INLINE shz_quat_t shz_quat_scale(shz_quat_t q, float f) SHZ_NOEXCEPT;
```

Scales the components of the given quaternion by the given factor.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `q` | `shz_quat_t` |  |
| `f` | `float` |  |

## Returns

`shz_quat_t`

## Availability

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