Reference

Vector

New

Input A list of numbers.
Output A vector containing the list of numbers.

Signature

Example

Add

Input Two vectors.
Output A vector that is the sum of the two input vectors.

Signature

Example

Subtract

Input Two vectors.
Output A vector that is the difference of the two input vectors.

Signature

Example

Normalize

Input A vector.
Output A vector with the same direction but with a magnitude of 1.

Signature

Example

Scale

Input A vector and a scalar.
Output A vector scaled by the given scalar.

Signature

Example

Magnitude

Input A vector.
Output The magnitude of the input vector.

Signature

Example

Angle

Input Two vectors.
Output The angle between the two input vectors in radians.

Signature

Example

Dot

Input Two vectors.
Output The dot product of the two vectors.

Signature

Example

Distance

Input Two vectors.
Output The Euclidean distance between the two vectors.

Signature

Example