Summary
In this chapter, you have learned the vector math required to create a robust animation system. Animation is a math-heavy topic; the skills you have learned in this chapter are required to complete the rest of this book. You implemented all the common vector operations for three-component vectors. The vec2
and vec4
structures don't have a full implementation like vec3
, but they are only used to send data to the GPU.
In the next chapter, you will continue to learn more about game-related math by learning about matrices.