# shz_dot8f

Source: https://sh4zam.com/api/scalar/shz_dot8f/

```c
SHZ_INLINE float shz_dot8f(float x1, float y1, float z1, float w1, float x2, float y2, float z2, float w2) SHZ_NOEXCEPT;
```

Takes two sets of 4D vectors as 4 floats and calculates their dot product using an approximation.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `x1` | `float` |  |
| `y1` | `float` |  |
| `z1` | `float` |  |
| `w1` | `float` |  |
| `x2` | `float` |  |
| `y2` | `float` |  |
| `z2` | `float` |  |
| `w2` | `float` |  |

## Returns

`float`

## Availability

- **C++ equivalent:** [`shz::dot8f`](https://sh4zam.com/api/cpp/#shzdot8f)
- **Type-generic form:** none
- **Back-ends:** SH4: dedicated SH4 implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_scalar.h:313`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_scalar.h#L313)
- **Module:** [Scalar](https://sh4zam.com/api/scalar/), section "FIPR"
