Pk19000 Pk19000 - 1 year ago 135
Python Question

The area of the intersection of two ovals (ellipses)?

I need to calculate the amount of two oval intersects in a python program.
I know in shaply there is a function that return true if two object has intersects. As like as this:

from shapely.geometry import Polygon
print p1.intersects(p2)

is there any library or function That help me?

Answer Source

Is this what you are looking for? (the polygon that results from the intersection)

x = p1.intersection(p2)

Find more information in the documentation here