O'Reilly logo

Beginning Math and Physics for Game Programmers by Wendy Stahler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Dot Product

Remember when you first learned the multiplication tables? Your teacher probably told you that 2 times 3 could be written as 2 × 3 or as 2 • 3, and that they mean the same thing. This statement is true for scalar quantities. However, it's not true for more complex structures, such as vectors. We'll first look at 2 • 3, which is called the dot product. Then we'll investigate the cross product, 2 × 3, in the next section.

The most important thing to remember about the dot product of two vectors is that it always returns a scalar value. Let's first discuss how to calculate it, and then we'll talk about what that number represents.

NOTE

Some math texts call the dot product of two vectors the scalar product because that is what the dot ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required