Determining the minimum-area encasing rectangle for an arbitrary closed curve | Synapse