# shz_vec2_reject

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

> Returns the rejection of the given 2D vector, vec, onto another 2D vector, onto

```c
SHZ_INLINE shz_vec2_t shz_vec2_reject(shz_vec2_t vec, shz_vec2_t onto) SHZ_NOEXCEPT;
```

Returns the rejection of the given 2D vector, `vec`, onto another 2D vector, `onto`.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `vec` | `shz_vec2_t` |  |
| `onto` | `shz_vec2_t` |  |

## Returns

`shz_vec2_t`

## Availability

- **C++ equivalent:** [`shz::vec2::reject`](https://sh4zam.com/api/cpp/vec2/#reject)
- **Type-generic form:** [`shz_vec_reject()`](https://sh4zam.com/api/vector/shz_vec_reject/)
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_vector.h:873`](https://github.com/gyrovorbis/sh4zam/blob/6b22b851ad9ca109049f956dbbbecf7c519c959f/include/sh4zam/shz_vector.h#L873)
- **Module:** [Vector](https://sh4zam.com/api/vector/), section "Binary Operations"
