**$Vector and $Vector2D**

**$Vector A B C**** **or **$Vector2D A B C**

The **$Vector** directive indicates that the variables that follow on the same line, separated by a space or list separator, are 3D vectors. 3D vectors consist of 3 EES variables with subscripts x, y, and z. For example, 3D vector A is shorthand for A_x ** i** + A_y

The **$Vector2D** directive is defined in the same manner except that the z-component does not exist. For example 2D vector A is shortance for A_x ** i** + A_y

Vector variables and functions that return vectors are identified in the EES Equations window with a bold underline font.

**Note**: 2D and 3D vectors cannot both be used in the same equation,

EES variables that are not defined to be vectors are referred to as scalars. Vectors can be multiplied or divided by scalars, but scalars cannot be added to or substracted from a vector.

The following functions have been developed to work with vectors. Click on the function name for information relating to the function.