椭圆到椭圆的交点如何? [英] How Ellipse to Ellipse intersection?

查看:191
本文介绍了椭圆到椭圆的交点如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用JAVA.

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

应返回false,但返回true.如何找到2个椭圆之间的交点?

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

Thx

推荐答案

CADEMIA 有一个有用的api,可以从此处下载.类 cib.util.geo.Geo2D 具有一个方法

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.

这篇关于椭圆到椭圆的交点如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆