How Ellipse to Ellipse intersection?

谁说我不能喝 提交于 2019-12-11 00:46:23

问题


I'm using JAVA.

Ellipse2D s1=new Ellipse2D.Float(0,0,100,100);
System.out.println(s1.intersects(99, 30, 100, 100));

Should return false but it return true. How to find intersection between 2 ellipse?

Thx


回答1:


CADEMIA has an useful api which can be downloaded from here. The class cib.util.geo.Geo2D has a method Geo2D#intersection which calculates the intersection points between two ellipses.

Hope this will help you. Thanks.



来源:https://stackoverflow.com/questions/6544441/how-ellipse-to-ellipse-intersection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!