# shz_vec4_dot3

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

> Returns the three dot products taken between the 4D vector l and 4D vectors r1, r2, and r3

```c
SHZ_INLINE shz_vec3_t shz_vec4_dot3(shz_vec4_t l, shz_vec4_t r1, shz_vec4_t r2, shz_vec4_t r3) SHZ_NOEXCEPT;
```

Returns the three dot products taken between the 4D vector `l` and 4D vectors `r1`, `r2`, and `r3`.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `l` | `shz_vec4_t` |  |
| `r1` | `shz_vec4_t` |  |
| `r2` | `shz_vec4_t` |  |
| `r3` | `shz_vec4_t` |  |

## Returns

`shz_vec3_t`

## Naming and requirements

- `dot2/dot3`: Computes 2 or 3 dot products of one left-hand side against several right-hand sides in one pipelined `FIPR` sequence. ([Naming and Suffixes](https://sh4zam.com/concepts/naming-and-suffixes/))

## Availability

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