Beginning Math and Physics for Game Programmers
< Day Day Up > |
KEY TOPICS
This chapter is dedicated to defining and working with vectors. Vectors are a comparatively new invention. They entered mathematical parlance in the 19 th century, as mathematicians and physicists wrestled with the need to describe motion rather than static placement. The regular numbers that you're used to dealing with are called scalar values, and they can be used to describe an amount or static placement. Unfortunately, though, these scalar values can't be used to describe an object's motion, because they have no way of indicating direction. Over the years , you've probably performed operations such as addition and multiplication on scalar numbers more often than you can count. This chapter revisits operations like that but for vectors, which include direction and govern all the motion in most games . This chapter sets up the rules for mathematically working with vectors so that you can use them in future chapters. |
< Day Day Up > |