# shz_vec2_dot2

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

> Returns the two dot products taken between the 2D vector l and 2D vectors r1 and r2

```c
SHZ_INLINE shz_vec2_t shz_vec2_dot2(shz_vec2_t l, shz_vec2_t r1, shz_vec2_t r2) SHZ_NOEXCEPT;
```

Returns the two dot products taken between the 2D vector `l` and 2D vectors `r1` and `r2`.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `l` | `shz_vec2_t` |  |
| `r1` | `shz_vec2_t` |  |
| `r2` | `shz_vec2_t` |  |

## Returns

`shz_vec2_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_dot2()`](https://sh4zam.com/api/vector/shz_vec_dot2/)
- **Back-ends:** SH4: dedicated SH4 implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_vector.h:469`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_vector.h#L469)
- **Module:** [Vector](https://sh4zam.com/api/vector/), section "Binary Operations"
