Ejemplo n.º 1
0
  // NslFloat4
  public static float[][][][] eval(
      float[][][][] dest,
      NslFloat4 num,
      int start1,
      int start2,
      int start3,
      int start4,
      int end1,
      int end2,
      int end3,
      int end4) {
    float[][][][] _data = num.get();

    if (start1 < 0) start1 = 0;
    if (start2 < 0) start2 = 0;
    if (start3 < 0) start3 = 0;
    if (start4 < 0) start4 = 0;
    if (end1 > _data.length) end1 = _data.length;
    if (end2 > _data[0].length) end2 = _data[0].length;
    if (end3 > _data[0][0].length) end3 = _data[0][0].length;
    if (end4 > _data[0][0][0].length) end4 = _data[0][0][0].length;

    int length1 = end1 - start1 + 1;
    int length2 = end2 - start2 + 1;
    int length3 = end3 - start3 + 1;
    int length4 = end4 - start4 + 1;

    return eval(dest, _data, start1, start2, start3, start4, end1, end2, end3, end4);
  }
 public float[][][][] eval(float[][][][] dest, NslFloat4 a, NslFloat4 b) {
   return eval(dest, a.getfloat4(), b.getfloat4());
 }
 public float[][][][] eval(float a, NslFloat4 b) {
   return eval(a, b.getfloat4());
 }
 public float[][][][] eval(NslFloat4 a, NslFloat4 b) {
   return eval(a.getfloat4(), b.getfloat4());
 }
 public float[][][][] eval(NslFloat4 a, float b) {
   return eval(a.getfloat4(), b);
 }