# shz_vec4_move

Source: https://sh4zam.com/api/vector/shz_vec4_move/

> Returns the given 4D vector, translated towards the target by the given max_distance

```c
SHZ_INLINE shz_vec4_t shz_vec4_move(shz_vec4_t vec, shz_vec4_t target, float max_distance) SHZ_NOEXCEPT;
```

Returns the given 4D vector, translated towards the `target` by the given `max_distance`.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `vec` | `shz_vec4_t` |  |
| `target` | `shz_vec4_t` |  |
| `max_distance` | `float` |  |

## Returns

`shz_vec4_t`

## Availability

- **C++ equivalent:** [`shz::vec4::move`](https://sh4zam.com/api/cpp/vec4/#move)
- **Type-generic form:** [`shz_vec_move()`](https://sh4zam.com/api/vector/shz_vec_move/)
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_vector.h:517`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_vector.h#L517)
- **Module:** [Vector](https://sh4zam.com/api/vector/), section "Binary Operations"
