Clones the vector
Returns the dot product of two vectors. Vectors must have equal length.
function to be executed on each element
context for execution
Returns a VectorType with each of its elements replaced by fn(e) where e is the corresponding element of this vector
function to be run on each element. e is the element value, and i is its index. Should return a new element.
the context for the function call. In other words, what is to be used as the 'this' variable when running the call.
Return true if this.elements are within precision equal to other.elements
Return a new vector that is the difference of this vector and other
Normalizes the vector. If the vector already has length 0, then it does nothing.
Return a new vector that is the sum of this vector and other
Subtracts the other vector's elements from this vector's elements
Returns this vector multiplied by the scalar k
Generated using TypeDoc
Adds the other vector's elements to this vector's elements