sin(0) * $x + cos(0) * $y ... vary 0 to 90/180/270 to sort in different directions