Skip to main content

java.awt.geom.Area

1 reply [Last post]
Confounded
Offline
Joined: 2006-02-17

I am trying to split an area into subareas based on an extended line that may or maynot pass thru an area.

Example:
//a square
Area a = new Area (new Rectangle2D.Double(-25,-25,100,100))
//a left slanting line segment
Line2D l = new Line2D (0,0,-1,-1)

Out of these two pieces I want an area that is the square with a triangle snipped out of the lower left corner.

I would like to be able to geralize the process to handle any area and any extended line.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
shan-man
Offline
Joined: 2006-02-17

Hi Confounded,

I've moved your question into the Java 2D category, where I think it will get a better response.

Regards,
Shannon