To find an element who is nearest to the target element from the specified direction.