Implement getting direction to segment from rectangle