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
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
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
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_
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
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
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
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
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
=
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
==
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
> 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
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
13 matches
Mail list logo