lovr.math.vec3
EditCreates a temporary 3D vector. This function takes the same arguments as Vec3: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. |
Returns
Name | Type | Description |
v | Vec3 | The new vector. |
Arguments
Name | Type | Description |
u | Vec3 | A vector to copy the values from. |
Returns
Name | Type | Description |
v | Vec3 | The new vector. |
Arguments
Name | Type | Description |
m | Mat4 | A matrix to use the position of. |
Returns
Name | Type | Description |
v | Vec3 | The new vector. |
Arguments
Name | Type | Description |
q | Quat | A quat to use the direction of. |
Returns
Name | Type | Description |
v | Vec3 | The new vector. |