There are several definitions of a ray. When viewed as a vector, a ray is a vector (A B)^⇀ from a point A to a point B. In geometry, a ray is usually taken as a half-infinite line (also known as a half-line) with one of the two points A and B taken to be at infinity.
interval | line | line segment | vector