Vec4:dot
EditReturns the dot product between this vector and another one.
Arguments
Name | Type | Description |
u | Vec4 | The vector to compute the dot product with. |
Returns
Name | Type | Description |
dot | number |
The dot product between v and u .
|
Arguments
Name | Type | Description |
x | number | A value of x component to compute the dot product with. |
y | number | A value of y component to compute the dot product with. |
z | number | A value of z component to compute the dot product with. |
w | number | A value of w component 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 + v.w * u.w
The vectors are not normalized before computing the dot product.