Vectors Flashcards
Cartesian products
Points in computer graphics (vector quantities)
Vector addition / subtraction
Sum / subtract the elements at their corresponding positions
Vector magnitude
Found using Pythagoras Theorem
(can be used for n-dimensional vectors)
How do you get a normlaized vector?
Divide the vector by it’s magnitude
Define the two ways of multiplying vectors
Cross Product
Dot Product / Scalar Product
Dot Product
Multiply the corresponding elements
using the dot product on vectors gives us a scalar product
Using the dot product on matrices gives us a new matrix
Uses of the dot product
Can compute the square of the magnitude of a vector by multiplying the vector by itself
Can compute the angle between two vectors: a . b = |a||b|cos(theta)