Vec3:dot
Returns the dot product between this vector and another one.
dot = Vec3:dot(u)
Arguments
Name | Type | Description |
u | Vec3 | The vector to compute the dot product with. |
Returns
Name | Type | Description |
dot | number | The dot product between v and u .
|
Notes
This is computed as:
dot = v.x * u.x + v.y * u.y + v.z * u.z
The vectors are not normalized before computing the dot product.
See also
Vec3:cross
Vec3