👉 A vector is a mathematical object that has both magnitude and direction. It can be represented as a directed line segment, which starts at one point in space and ends at another point. A vector can have both positive and negative magnitudes, depending on its direction. The magnitude of a vector represents its length or extent.