Adds the number scalarValue to each element in the vector.
Adds this vector to otherVector leaving the result in otherVector. The matrices must be of the same size. The optional argument scale allows otherVector to be scaled before adding it to this vector.
This method is hardware accelerated where supported.
Copies the contents of otherVector to thisVector.
This method is hardware accelerated where supported.
Copies the contents of this vector to the blue channel of theImage. The optional argument scale specifies how the vector elements should be scaled.
This method, and it's counterparts copy-to-red-channel and copy-to-green-channel are far faster than looping manually through the vector values.
Copies the contents of this vector to the green channel of theImage. The optional argument scale specifies how the vector elements should be scaled.
This method, and it's counterparts copy-to-blue-channel and copy-to-red-channel are far faster than looping manually through the vector values.
Copies the contents of this vector to the red channel of theImage. The optional argument scale specifies how the vector elements should be scaled.
This method, and it's counterparts copy-to-green-channel and copy-to-blue-channel are far faster than looping manually through the vector values.
Returns the sum of the absolute values of all elements in this vector.
This method is hardware accelerated where supported.
Returns the x size of this vector.
Returns the vector value at position (x).
Set the dimension of the vector to size. Clears contents.
Multiplies each element in this vector with the corresponding element in otherVector. This is not regular vector multiplication; rather, it is a way to scale each element in otherVector.
Prints the vector in a style similar to MATLAB.
Scales all elements in the vector by scaleValue.
This method is hardware accelerated where supported.
Sets all of the values in the vector to value.
Sets the size of this vector to the new dimension.
Sets the vector value at position (x, y, z).
Subtracts this vector from this otherVector, leaving the result in otherVector. This method uses the same mechanism as add, but using a negative scale argument. The optional argument scale allows otherVector to be scaled before subtracting it from this vector.
This method is hardware accelerated where supported.
Transforms this Vector with the Matrix2D matrix, storing the output in result.