Read · 1 min
Great, so we want the axes and to be orthogonal.
To formalize this, it'll be easier to define orthogonal vectors/directions instead. Intuitively, and ignoring bad division by zero cases, vectors and should be orthogonal if for some nonzero vector , we have and , which is basically equivalent to , or more simply, .
This will be our definition: two vectors and are orthogonal iff .
Similarly, two lines/rays are orthogonal iff their direction vectors are orthogonal.