# shz_vec2_div_fsrra

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

> Returns a 2D vector whose component values are those of vec1 divided by vec2, using a fast approximation which requires vec2 to have positive components

```c
SHZ_INLINE shz_vec2_t shz_vec2_div_fsrra(shz_vec2_t vec1, shz_vec2_t vec2) SHZ_NOEXCEPT;
```

Returns a 2D vector whose component values are those of `vec1` divided by `vec2`, using a fast approximation which requires `vec2` to have positive components.

## Parameters

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

## Returns

`shz_vec2_t`

## Naming and requirements

- `_fsrra`: Uses `FSRRA` (fast approximate 1/sqrt(x)). The argument or denominator must be positive. Faster, less precise. ([Naming and Suffixes](https://sh4zam.com/concepts/naming-and-suffixes/))

## Availability

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