lovr.math.vec4
EditCreates a vector.
Arguments
| Name | Type | Default | Description |
| x | number | The x component of the vector. | |
| y | number | The y component of the vector. | |
| z | number | 0 | The z component of the vector. |
Returns
| Name | Type | Description |
| v | vector | The new vector. |
Arguments
| Name | Type | Description |
| n | number | A number to assign to the x, y, and z components of the vector. |
Returns
| Name | Type | Description |
| v | vector | The new vector. |