# shz_vec_normalize_or

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

```c
#define shz_vec_normalize_or(vec, alt)
```

C type-generic vector normalization, returning an alternate value upon failure.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `vec` |  |  |
| `alt` |  |  |

## Availability

- **C++ equivalent:** none (usable from C++ as is)
- **Back-ends:** n/a (not a function)
- **Defined in:** [`sh4zam/shz_vector.h:1523`](https://github.com/gyrovorbis/sh4zam/blob/6b22b851ad9ca109049f956dbbbecf7c519c959f/include/sh4zam/shz_vector.h#L1523)
- **Module:** [Vector](https://sh4zam.com/api/vector/), section "Type-Generic Routines"
