# shz_quat_dot3

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

> Returns the two dot products taken between the l quaternion and the r1, r2, and r3 quaternions

```c
SHZ_INLINE shz_vec3_t shz_quat_dot3(shz_quat_t l, shz_quat_t r1, shz_quat_t r2, shz_quat_t r3) SHZ_NOEXCEPT;
```

Returns the two dot products taken between the `l` quaternion and the `r1`, `r2`, and `r3` quaternions.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `l` | `shz_quat_t` |  |
| `r1` | `shz_quat_t` |  |
| `r2` | `shz_quat_t` |  |
| `r3` | `shz_quat_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:** none
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_quat.h:236`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_quat.h#L236)
- **Module:** [Quaternion](https://sh4zam.com/api/quat/), section "Arithmetic"
