direction

∥a∥=%x

Magnitude = %v

A = (-2, 1)
B = (1, 3)
a = Vector(A, B)
mag = Length(a)
u: a / Length[a]
C: (mag, 0)
D = Point(u)
b = Segment(D, C)