Vector mathematics and matrices and their representation in Niagara
Vector mathematics and matrices are one of those boring subjects in high school mathematics that you may have entirely skipped because you had no idea where you would use them in your daily life. Well, now you know. They are used everywhere in games and particle systems in particular. Let us take some time to brush up on our concepts, starting with vector mathematics.
What is a vector?
Let us ignore all the complicated talk about magnitude and velocity used in the standard definition of a vector and have a look at the bare essentials.
In a two-dimensional space, a vector just holds an x and y value; for example, vector a = (3, 4) where 3 is x and 4 is y.
This representation can be used to define the location or direction of an object. We can also find the speed of an object by finding what is known as the magnitude of the vector. Let us see how a vector is used to define a location and then we will see...