# shz_vec3_cross

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

```c
SHZ_INLINE shz_vec3_t shz_vec3_cross(shz_vec3_t vec1, shz_vec3_t vec2) SHZ_NOEXCEPT;
```

Returns the vector produced by taking the cross-product of the two given 3D vectors.

## Parameters

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

## Returns

`shz_vec3_t`

## Availability

- **C++ equivalent:** [`shz::vec3::cross`](https://sh4zam.com/api/cpp/vec3/#cross)
- **Type-generic form:** [`shz_vec_cross()`](https://sh4zam.com/api/vector/shz_vec_cross/)
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_vector.h:556`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_vector.h#L556)
- **Module:** [Vector](https://sh4zam.com/api/vector/), section "Binary Operations"
