More actions
No edit summary Tag: 2017 source edit |
m →dot: adjust caps Tag: 2017 source edit |
||
Line 33: | Line 33: | ||
---- | ---- | ||
Computes the [[wikipedia: | Computes the [[wikipedia:dot product|dot product]] between two vectors. The argument must be the same type as the target vector. | ||
{| class="wikitable" | {| class="wikitable" |
Revision as of 23:22, 27 October 2024
Math operations
Mathematical operations that apply to all vectors, such as computing their length
length
Mathematical definition
Computes the Euclidean norm of the vector.
Computes the length of a vector.
Arguments | Return Type |
---|---|
length()
|
number |
lengthSquared
Computes the length of a vector, squared. Due to the nature of the length calculation, this is a little bit faster than length
.
Arguments | Return Type |
---|---|
lengthSquared()
|
number |
dot
Computes the dot product between two vectors. The argument must be the same type as the target vector.
Arguments | Return Type |
---|---|
dot(Vector other)
|
number |