"As an aspiring computer programmer who grew up playing lots of video games, I plan to one day go into game engine development. I think that nearly all types of video games use vectors, whether it is realized or not. I'll use Super Smash Bros as an example, a two-dimensional fighting game in which two or more players are positioned on floating platforms suspended in the air where they duel in a goal to achieve dominance over the other players. In these games, there are coordinates which point to positions on the screen, an x-coordinate and a y-coordinate. Let's say you were trying to design an AI character for players to practice against. This AI character will have an ability in which it becomes a ghost and floats to your character over a set interval of time, which does not change no matter how far the AI is away from your character. Whether it is 5 units away or 10 units away, it will arrive in exactly one second. How could you calculate the speed and direction the AI should travel with in order to achieve this? If the AI has coordinates (3, 5), and the player has coordinates (8, 12), you could find the distance the AI needs to travel by using the pythagorean theorem. The difference in the character's x-coordinates is 5 and the difference in their y-coordinates is 7, so inputting these values into the pythagorean theorem (a^2+b^2=c^2) you get (5^2+7^2)= 74 and the square root of 74 is 8.6. So the distance the AI needs to travel is 8.6 units (magnitude). The angle, or direction at which the AI needs to travel can be calculated using the trigonometry function arctan(7/5) which yields a result of 54 degrees. Lastly, we need to calculate the speed at which the AI must travel to arrive in one second, which is 8.6 units per second.
Therefore, in this case using the teleportation ability, the AI should travel 8.6 units per second at 54°."