Implement auto-layout hit-testing algorithm (based on NORTH, SOUTH,
EAST, WEST parts of the hit figure)