| add ( ) |
|
Adds an input vector to the vector and stores the result.
|
| added ( ) |
|
Adds an input vector to the vector and returns the result.
|
| angle ( ) |
|
Returns the angle of the vector.
|
| angleBetween ( ) |
|
Returns the angle between two vectors (always positive).
|
| angleBetweenUnits ( ) |
|
Returns the angle between two unit vectors (always positive).
|
| angleFromTo ( ) |
|
Returns the angle between two unit vectors.
|
| clip ( ) |
|
Clips the magnitude of the vector.
|
| clipped ( ) |
|
Returns a copy of the vector that has been clipped.
|
| clone ( ) |
|
Returns a clone of the vector.
|
| copy ( ) |
|
Returns a copy of the vector (DEPRECIATED).
|
| distance ( ) |
|
Returns the distance between to positions.
|
| divide ( ) |
|
Divides the vector by a divider and stores the result.
|
| divided ( ) |
|
Divides the vector by a divider and returns the result.
|
| dot ( ) |
|
Returns the dot product of this vector and another.
|
| equals ( ) |
|
Returns true if the vector is equals another vector
|
| flip ( ) |
|
Flips the vector 180 degrees.
|
| flipped ( ) |
|
Returns a copy that has been flipped.
|
| isAlmostZero ( ) |
|
Returns true if the vector is almost zero.
|
| isGreaterThan ( ) |
|
Returns true if the vector is longer than a specific magnitude.
|
| isLessThan ( ) |
|
Returns true if the vector is shorter than a specific magnitude.
|
| isZero ( ) |
|
Returns true if the vector is zero.
|
| lerp ( ) |
|
Returns the linear interpolation between two vectors.
|
| magnitude ( ) |
|
Returns the magnitude of the vector, also referred to as the length.
|
| midpoint ( ) |
|
Returns the midpoint between two given vector points.
|
| normalize ( ) |
|
Normalizes the vector.
|
| normalized ( ) |
|
Returns a copy that has been normalized.
|
| rotate ( ) |
|
Rotates the vector clockwise by a a delta angle.
|
| rotateAround ( ) |
|
Rotates the position clockwise around another position by a a delta angle.
|
| rotateLeft ( ) |
|
Rotates the vector 90 degrees left.
|
| rotateRight ( ) |
|
Rotates the vector 90 degrees right.
|
| rotated ( ) |
|
Returns copy that has been rotated clockwise by a delta angle.
|
| rotatedAround ( ) |
|
Rotates the position clockwise around another position by a a delta angle.
|
| rotatedLeft ( ) |
|
Returns a copy that has been rotated 90 degrees counter clockwise.
|
| rotatedRight ( ) |
|
Returns a copy that has been rotated 90 degrees clockwise.
|
| scale ( ) |
|
Multiplies the vector by an input value and stores the result.
|
| scaled ( ) |
|
Multiplies the vector by an input value and returns the result.
|
| set ( ) |
|
Sets the vector by copying.
|
| setMagnitude ( ) |
|
Sets the magnitude (length) of the vector.
|
| setRotation ( ) |
|
Sets the rotation of the vector.
|
| setZero ( ) |
|
Sets the vector to zero (0,0).
|
| squareMagnitude ( ) |
|
Returns the square magnitude of the vector.
|
| subtract ( ) |
|
Subtracts an input from the vector and stores the result.
|
| subtracted ( ) |
|
Subtracts and input vector from the vector and returns the result.
|
| toString ( ) |
|
Returns a string containing the (x,y) components of this vector.
|