Chapter 2: Implementing Vectors
In this chapter, you will learn the basics of vector math. Much of what you will code throughout the rest of this book relies on having a strong understanding of vectors. Vectors will be used to represent displacement and direction.
By the end of this chapter, you will have implemented a robust vector library and will be able to perform a variety of vector operations, including component-wise and non-component-wise operations.
We will cover the following topics in this chapter:
- Introducing vectors
- Creating a vector
- Understanding component-wise operations
- Understanding non-component-wise operations
- Interpolating vectors
- Comparing vectors
- Exploring more vectors
Important information:
In this chapter, you will learn how to implement vectors in an intuitive, visual way that relies on code more than math formulas. If you are interested in math formulas or want some interactive examples to try out, go to https://gabormakesgames.com/vectors.html.