# shz_vec_normalize_safe

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

```c
#define shz_vec_normalize_safe(vec)
```

C type-generic safe vector normalization.

## Parameters

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

## Naming and requirements

- `_safe`: Guards degenerate input (zero-length vectors, zero denominators) at a small cost. ([Naming and Suffixes](https://sh4zam.com/concepts/naming-and-suffixes/))

## Availability

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