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 
centroid calculation" and "Clipping a line with a polygon", which are both 
linked from this page.

Even though the code examples are mostly in C, this is a terrific source for 
working with the Java geometry classes.
[Message sent by forum member 'rpollack' (rpollack)]

http://forums.java.net/jive/thread.jspa?messageID=254545

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to