# Shared

## ToVector4

Function to convert an array with four elements in it,\
`[1] = number, [2] = number, [3] = number and [4] = number` into vector4

```lua
function HRLib.ToVector4(coords: vector4|number[]): vector4?
```

Parameters description

* coords -  the data to convert into vector4

## ToVector3

Function to convert an array with three or more elements, in which\
`[1] = number, [2] = number and [3] = number` or vector4 into vector3

```lua
function HRLib.ToVector3(coords: vector3|vector4|number[]): vector3?
```

Parameters description

* `coords` -  the data to convert into vector3

## ToVector2

Function to convert an array with three or more elements, in which\
`[1] = number, [2] = number`, vector4 or vector3 into vector2

```lua
function HRLib.ToVector2(coords: vector2|vector3|vector4|number[]): vector3?
```

Parameters description

* `coords` -  the data to convert into vector2
