ABSTRACT

Vectors and Scalars The Astro Sweeper game makes use of a VectorMath class that simplifies some of the calculations by treating the two coordinates as one entity – a Vector. A Vector, simply put, is a mathematical entity with more than one component. In the context of vectors, normal single-component numbers are called “Scalars”. The number of components is referred to as the “dimension” of the vector. A vector with two components (like x and y) is a 2-dimensional (2D) vector. A vector with three components (like x, y, and z) is a 3-dimensional vector. An n-dimensional vector has n components.