Here are the basic trigonometric functions we will use (in pseudocode).Length(v) = SquareRoot(v.x*v.x + v.y*v.y) LengthSqr(v) = v.x*v.x + v.y*v.y It’s common to use the length squared as an optimization. When comparing distances with <, >, <= or >= the result is ...
Put more simply, it’s okay for a function to have multiple coordinate points in a straight line from left to right. Not a function:“one to many“. In other words, let’s say you had one x-value that maps to many y-values. For example, — in coordinate notation — (2,1) and...
Check out this Desmos graphic to see this interactively. I admit I often come to play with it when I need to refresh my understanding of the two products. It is crucial that you have a basic intuition about the dot and cross products if you are to follow the rest of this tutorial. I...