Changing the length of 3-D vectors