# shz_vec4_mul

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

> Returns a 4D vector whose component values are those of vec1 times vec2

```c
SHZ_INLINE shz_vec4_t shz_vec4_mul(shz_vec4_t vec1, shz_vec4_t vec2) SHZ_NOEXCEPT;
```

Returns a 4D vector whose component values are those of `vec1` times `vec2`.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `vec1` | `shz_vec4_t` |  |
| `vec2` | `shz_vec4_t` |  |

## Returns

`shz_vec4_t`

## Availability

- **C++ equivalent:** none (call the C function from C++)
- **Type-generic form:** [`shz_vec_mul()`](https://sh4zam.com/api/vector/shz_vec_mul/)
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: dedicated SPU implementation
- **Defined in:** [`sh4zam/shz_vector.h:377`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_vector.h#L377)
- **Module:** [Vector](https://sh4zam.com/api/vector/), section "Arithmetic"
