I would like to have a list of the longest vectors of the different polygons created, that is, with their coordinates and length. For example if I have two 4-sided or rectangular polygons, I will have 8 vectors of those 8 vectors I want my 2 longest vectors one for each polygon.

I attach an image how far I have come