### Cross Product

The preceding section looked at one way to “multiply” vectors—the dot product. This section examines the cross product. The biggest difference between the two is that the dot product returns a scalar value and the cross product returns another vector. Let's look at the method for calculating the cross product.

NOTE

Some math texts refer to the cross product of two vectors as the vector product because that is what the cross product returns.

## Cross ProductA × B = [(a for any two vectors A = [a |

#### Example 4.15: Cross Product

Find the cross product of vectors A = [5 –6 0] and B = [1 2 3].

##### Solution

The cross product returns another vector, so you can calculate each component ...

Get *Beginning Math and Physics for Game Programmers* now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.