The area of the intersection of two ovals (ellipses)?
<p>I need to calculate the amount of two oval intersects in a python program.
I know in <a href="https://pypi.python.org/pypi/Shapely" rel="nofollow">shaply</a> there is a function that return true if two object has intersects. As like as this:</p>

<pre><code>from shapely.geometry import Polygon
p1=Polygon([(0,0),(1,1),(1,0)])
p2=Polygon([(0,1),(1,0),(1,1)])
print p1.intersects(p2)
</code></pre>

<p>is there any library or function That help me?
Thanks.</p>

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

<pre><code>x = p1.intersection(p2)
x.area
</code></pre>

<p>Find more information in the documentation <a href="http://toblerity.org/shapely/manual.html" rel="nofollow">here</a></p>

python geometry polygon shapely.geometry