Gridded1dDoubleSet Problem

hello mailinglistEner

i have a problem.
i would like to draw a triangle with the x,y coordinates (0.5/0.5 |
1.0/1.0 | 1.0/0.5 | 0.5/0.5)
i wrote something like this

  x = new RealType("X", SI.meter, null);
  y = new RealType("Y", SI.meter, null);

 double [][] x_vals = new double[][]{{0.5,1.0,1.0,0.5}};

 x_set = new Gridded1DDoubleSet(x, x_vals, 4);

 double [][] y_vals = new double[][]{{0.5,1.0,0.5,0.5}};


and he shows me after the start this Set.Exception

Gridded1DDoubleSet: samples do not form a valid grid (2)

i think that is because of the same coordinates and the
Gridded1DDoubleSet.
but which set should i use ?

thanks
larsson


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