A = (2, 1)
B = (4, 2)
g = 3 (slider from -3 to 5, step 1)
P: A + g * Vector[A, B]
u = Vector(A, B)
v = Vector(A, P)
Text1: "P = A +" + g + " \cdot \vec AB"