Re: [JAVA2D] Intersection of Line and Polygon and the Area of Polygon

2008-06-09 Thread java2d
this wouldn't work for lines. an Area defined by a line is empty. [Message sent by forum member 'cichlasoma' (cichlasoma)] http://forums.java.net/jive/thread.jspa?messageID=279326 === To unsubscribe, send email to [EMAIL PROT

Re: [JAVA2D] Intersection of Line and Polygon and the Area of Polygon

2008-03-03 Thread Jérôme Thièvre
Be carefull with Area, their performances are very poor. Jérôme Thièvre [EMAIL PROTECTED] a écrit : You can also try using Java built in functions. This works for intersecting line with polygon or other shape as well as for finding polygon intersection, or in other words intersecting polygon

Re: [JAVA2D] Intersection of Line and Polygon and the Area of Polygon

2008-03-03 Thread Truth
Jérôme Thièvre wrote: > > These methods are not implemented in Java standard API. > I've had very similar problem with intersection of two polygons and just recently found out that Java has built in procedures for that. I wanted to share with you. Area area1= new Area(line2d_or_polygon); Area a

Re: [JAVA2D] Intersection of Line and Polygon and the Area of Polygon

2008-03-03 Thread java2d
You can also try using Java built in functions. This works for intersecting line with polygon or other shape as well as for finding polygon intersection, or in other words intersecting polygons. Area area1= new Area(line2d_polygon_or_some_other_shape); Area area2= new Area(ine2d_polygon_or_some_

Re: [JAVA2D] Intersection of Line and Polygon and the Area of Polygon

2008-01-17 Thread java2d
Thank you both for the great help! [Message sent by forum member 'lcmeng' (lcmeng)] http://forums.java.net/jive/thread.jspa?messageID=254591 === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the m

Re: [JAVA2D] Intersection of Line and Polygon and the Area of Polygon

2008-01-17 Thread java2d
My own personal favorite site for questions of this sort is the collection of geometry algorithms posted by Paul Bourke of the University of Western Australia. See http://local.wasp.uwa.edu.au/~pbourke/geometry/. The particular algorithms you will be most interested in are "Polygon area and cen

Re: [JAVA2D] Intersection of Line and Polygon and the Area of Polygon

2008-01-17 Thread Jérôme Thièvre
Hi, These methods are not implemented in Java standard API. I give you the line intersection routine : public static Point2D lineIntersection(Line2D line1, Line2D line2) { Point2D cp = null; double a1,b1,c1,a2,b2,c2,denom; a1 = line1.getY2()-line1.getY1(); b1

[JAVA2D] Intersection of Line and Polygon and the Area of Polygon

2008-01-17 Thread java2d
Hi all, It seems that the intersct() of Line2D will only return a boolean value. I'm looking for some sample code to calculate the intersection of a line and a polygon (or 2 lines) and return the point. In addition, I need to calculate the area of a regular polygon. I guess the the source files

Re: [JAVA2D] Intersection between 2 ellipses?

2007-04-30 Thread java2d
There are no built in classes or functions for it. If you know Javascript, go to http://www.kevlindev.com/gui/math/intersection/Intersection.js for a good example. [Message sent by forum member 'devlinbentley' (devlinbentley)] http://forums.java.net/jive/thread.jspa?messageID=214996 =

[JAVA2D] Intersection between 2 ellipses?

2007-04-29 Thread java2d
Hello, How to detect intersection between 2 ellipses? Is there any built-in function for this purpose? Thanks for your help. [Message sent by forum member 'mgv' (mgv)] http://forums.java.net/jive/thread.jspa?messageID=214847 ==

Re: [JAVA2D] Intersection

2000-03-15 Thread Chris Roffler
When do you think that the intersection problems are going to be solved ? In 1.3RC1 when you say intersection, does that only include shapes that actually intersect or is it possible to work with vectors ? For example, I have two vectors ( each with a point vector and direction vector) and I want

Re: [JAVA2D] Intersection

2000-03-08 Thread Sergei Rodionov
> I realized that many 2D class provides methods for checking > intersection. > How can one determine the intersection point between different > 2D objects (e.g line with circile, line with rectangle)? Create Area from your Shape and then use intersection and hit methods on Area class. Still the

[JAVA2D] Intersection

2000-03-03 Thread Pin Ngee Koh
I realized that many 2D class provides methods for checking intersection. How can one determine the intersection point between different 2D objects (e.g line with circile, line with rectangle)? === To unsubscribe, send email