SourceForge.net Logo Home | Download | Submit | Screenshots | FAQ | SF Project Page | JUDO Help | Contact

View a Program

To run this program in JUDO, select the Program Code with your mouse, click the Edit menu of your browser and Copy. Then click in the code area of JUDO, click the Edit menu of JUDO and then Paste. Then Run the program.

Author Name:Edac Leinad
Program Name:Is In Polygon
Program Description:Uses Java API to find if a point is geometrically inside of a polygon specified.

Email me at nospam.flyndgs@gmail.com (remove "nospam.") if you have questions.

Maximize the window before interacting.

This is just an example with the mouse, if the mouse is inside the polygon, then the rectangle flashes, else the rectangle stays the same color.

Enjoy :D

P.S. This uses a 10 pnt polygon. To change that, go to line
int[] x = new int[10];
and change '10' to a number greater than zero, but not too big (200 is probably too big) The program will automatically calculate a new random polygon with that many points.
 
Program Type:Graphics
Program Code:

Last Modified Sun Dec 22 07:25:00 UTC 2013
Thomas Dunn

Home | Download | Submit | Screenshots | FAQ | SF Project Page | JUDO Help | Contact