In this tutorial we are going to learn how to scale vectors. A scalar has magnitude (size) only. A vector has both magnitude and direction.
Consider the previous example of Pacman(P). Let us assume that the Pacman is moving along the right with a velocity .
If we want to double the velocity of Pacman, we should multiply with 2 i.e 2* . In terms of x and y componets, 2 = ( 2* , 2*).
We can also half the velocity, in which case /2 = ( /2 , /2).