Discovering the area of intersection between two bounding boxes using Shapely
1 from shapely.geometry import box
2 b = box(5.0, 5.0, 10.0, 10.0)
3 c = box(0.0, 0.0, 5.0, 5.0)
4 print (b.intersection(c)).area
_________________________________
4: 0.0
Nenhum comentário:
Postar um comentário