I have a list of flying trajectory data from a drone. I want to find the rectangle area that the drone flew through. I found some articles and tried the code as below. But I