Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Minimun ellipse bound that contain a point relative to the bound's origin
Minimun ellipse bound that contain a point relative to the bound's origin [message #985654] Thu, 15 November 2012 15:46 Go to next message
Mauro P. is currently offline Mauro P.
Messages: 24
Registered: April 2011
Junior Member
Hi all,
I've got a question, maybe someone has already encountred this problem.
I'm developing an editor with GEF. In my editor there are some nodes that have an ellipse as compartment.
My problem is calculating the minimun ellipse bound size so that all children object's are contained in the ellipse.
I've attached an image to better explain what i'm saying

index.php/fa/12342/0/

I need to get the minimun width and height of the ellipse, so that the point relative to the origin is on the ellipse perimeter.

If someone can help me i'll be great.

Tanks in advance
Mauro P.
  • Attachment: ellipse.jpg
    (Size: 38.95KB, Downloaded 251 times)
Re: Minimun ellipse bound that contain a point relative to the bound's origin [message #986172 is a reply to message #985654] Mon, 19 November 2012 10:04 Go to previous message
Jan Krakora is currently offline Jan Krakora
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
Hi, this is a math question and I think you could find the answer in a mathematical tables or something.

What about the Ellipse.containsPoint()? This method could gives you a hint.
Previous Topic:"Synchronizing" two editors
Next Topic:Which Layoutmanager isObservingVisibility?
Goto Forum:
  


Current Time: Thu Sep 18 07:43:44 GMT 2014

Powered by FUDForum. Page generated in 0.06004 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software