NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
If you are using VisAD, then the method: public static boolean inside(float[][] s, float x, float y) in visad.DelaunayCustom will tell you if the point (x, y) is inside the polygon described by s, which is dimensioned float[2][number_of_points]. On Fri, 25 Jul 2003, Tan Ka Ju wrote: > Hello. > > Is their in Java any method to know is a line contains or inside an > arbitrary polygon or shape? Or is the any algorithm or mathematics > formula that can solve this problem? > > Thanks. > KJ
visad
archives: