8 sectors
P1(0,0) and P2(1,0): East
P1(0,0) and P2(1,1): Northeast
P1(0,0) and P2(0,1): North
P1(0,0) and P2(-1,1): Northwest
P1(0,0) and P2(-1,0): West
P1(1,1) and P2(-1,-1): Southwest
P1(1,1) and P2(0,-1): South
P1(1,1) and P2(1,-1): Southeast
Test samples
P1(1,1) and P2(0,1): West
P1(1,1) and P2(5,4): Northeast
P1(1,1) and P2(1,1): Undefined