Read · 2 min
Direction (vectors), parallelness, translation
We'll now formalize the notion of a direction. We do this with vectors ( real numbers), which you can intuitively think of as arrows from to . If are not both zero, we call the corresponding vector nonzero.
Then a direction is a set of nonzero vectors such that for any and in the set, there exists a positive real such that and . (Intuitively, think dilation/scaling by a factor of about the origin , to get from to .) For example, "north" is , "south" is , and "northwest" is .
Often when being lazy, we'll specify a direction (vector) just by a single member of the set. For example, we'd represent the north, south, and northwest directions by , , and .
Given a head point and a tail point , the vector from to is simply , which can intuitively be written as .
Two vectors are parallel if they have either the same or "opposite" (i.e. negative) directions. (In some contexts, they're called antiparallel if they correspond to opposite directions.)
A translation by the (translation) vector is a "transformation" (mapping) sending the point to the point . It's easy to check that if is parallel to , then is parallel to .
Betweenness and orientation (counterclockwise and clockwise)
In this section, we'll denote vectors/directions by the shorthand , when the context is clear.
Let's say is to the left of (or counterclockwise of) a nonzero iff , and strictly (to the) left (or strictly counterclockwise) iff . (What happens when ? To gain intuition for this definition, try working it out for some examples, thinking in terms of "slopes" , , etc., at least when are nonzero.)
Similarly, say is to the right (or clockwise of) iff , and strictly (to the) right (or (strictly) clockwise) iff . Note that if is left or right of , then is right or left of , respectively.
(Often left/right/etc. will actually mean strictly left/strictly right/etc., depending on context. But it's almost never a big deal, so don't worry too much about it.)
By orientation, we mean the relative leftness/rightness/etc. of vectors. For example, vectors are in counterclockwise orientation if is left of and is left of , and in clockwise orientation if is right of and is right of .
Let's try to define betweenness. We want a definition such that lies in between and iff ; in between and iff , etc.
The following works: let and be two nonzero vectors, with left of (or equivalently, is right of ). Then is between and iff is left of and is left of .
(Again, I recommend that you work through some examples to gain intuition.)