# shz_vec2_to

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

> Converts the given 2D vector into a value of the given type

```c
#define shz_vec2_to(type, vector) SHZ_CONVERT(type, vector)
```

Converts the given 2D `vector` into a value of the given `type`.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `type` |  |  |
| `vector` |  |  |

## Availability

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