RE: printing three display components

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


  • 2003 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: