Vector
- Tags
- math
Vectors are collections of values organised into an array. They can be used to
represent a coordinate-position (position vector) or a direction that something
is pointing in (direction vector).
For example you can have 2 position vectors
,
,
and define the direction vector from to as
.
Note: The superscript above means transposed. Position and direction
vectors are commonly expressed in column notation (such as ) however for brevity and readability their transposed and
written as row vectors.
The distinction will become more relevant as we explore matrices.
Note: , in-fact
in this case because they point in opposite directions.
We define the length of a vector as , the true euclidean
distance of the vector.