lithos
|
 |
«
Reply #1 - Posted
2012-12-07 16:06:55 » |
|
There is Java.Awt.Polygon. But it doesn't have some basic things like being able to get the angle of the slope you're on and similar.
There's also an improvement floating around on this forum of the Polygon class that has some nice speed improvements.
You could also roll your own. If you draw any polygon and draw a line through it, it will cross an odd number of the polygon's edges if it's inside it (one of the endpoints of the line) or an even number if it's outside of it.
|