Create getOppositeDirection