lovr.math.vec4
EditCreates a temporary 4D vector. This function takes the same arguments as Vec4:set.
Arguments
| Name | Type | Default | Description |
| x | number | 0 | The x value of the vector. |
| y | number | x | The y value of the vector. |
| z | number | x | The z value of the vector. |
| w | number | x | The w value of the vector. |
Returns
| Name | Type | Description |
| v | Vec4 | The new vector. |
Arguments
| Name | Type | Description |
| u | Vec4 | A vector to copy the values from. |
Returns
| Name | Type | Description |
| v | Vec4 | The new vector. |