Examples of Vector4


Examples of be.demmel.jgws.packets.Vector4

          float x = dataToDeserialize.readFloat();
          float y = dataToDeserialize.readFloat();
          float z = dataToDeserialize.readFloat();
          float a = dataToDeserialize.readFloat();

          Vector4 vector = new Vector4(x, y, z, a);
          try {
            field.set(packet, vector);
          } catch (IllegalArgumentException | IllegalAccessException e) {
            // should never happen
            LOGGER.error("Unexpected error: ", e);
View Full Code Here

Examples of com.ardor3d.math.Vector4

    private Voxel addVoxel(int x, int y, int z) {
        if (x>=0 && y>=0 && z>=0 && x<voxelArraySize && y<voxelArraySize && z<voxelArraySize) {
            Voxel voxel = voxels[x][y][z];
            Vector3 vertexPosition = new Vector3(crossingPoint).multiplyLocal(levelScale).addLocal(basePosition);
            Vector4 material = new Vector4(x/32.0f,y/32.0f,z/32.0f,1.0);
            if (voxel == null) {              
                voxels[x][y][z] = new Voxel(vertexPosition,material,voxelCounter);
                voxelCounter++;
            } else {
                voxels[x][y][z].add(vertexPosition,material);
View Full Code Here

Examples of com.ardor3d.math.Vector4

    public abstract void drawTo(BufferedImage image, ReadOnlyTransform localTransform, int clipmapLevel);

    public abstract void updateBoundsFromElement();

    public void updateBounds() {
        final Vector4 oldBounds = new Vector4(_awtBounds);
        // update using size of element
        updateBoundsFromElement();

        // So apply transform
        final double x = _awtBounds.getX(), y = _awtBounds.getY(), width = _awtBounds.getZ(), height = _awtBounds
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.types.Vector4

    return new Vector3(v.x, v.y, v.z);
  }

  public static Vector4 OMVVector4(org.lwjgl.util.vector.Vector4f v)
  {
    return new Vector4(v.x, v.y, v.z, v.w);
  }
View Full Code Here

Examples of edu.cmu.cs.stage3.math.Vector4

  public javax.vecmath.Vector4d transformTo( javax.vecmath.Vector4d xyzw, ReferenceFrame to ) {
    return MathUtilities.multiply( xyzw, getTransformation( to ) );
  }
  public javax.vecmath.Vector3d transformTo( javax.vecmath.Vector3d xyz, ReferenceFrame to ) {
    return new Vector3( transformTo( new Vector4( xyz, 1 ), to ) );
  }
View Full Code Here

Examples of engine.base.Vector4

    _function(out, caches[0].sample(localX, localY));
  }
 
 
  protected float _value1f(float u, float v) {
    Vector4 val = valueRGBA(u, v);
    return (val.x+val.y+val.z)*(1.0f/3.0f);
  }
 
View Full Code Here

Examples of engine.base.Vector4

    Vector4 val = valueRGBA(u, v);
    return (val.x+val.y+val.z)*(1.0f/3.0f);
  }
 
  protected Vector4 _valueRGBA(float u, float v) {
    Vector4 ret = new Vector4();
    _function(ret, inputChannels[0].valueRGBA(u, v));
    return ret;
  }
View Full Code Here

Examples of engine.base.Vector4

      this.py = py;
    }

    public Vector4 sample(int x, int y) {
      int i = ((x + border) + (y + border) * (xres + 2*border)) * 4;
      return new Vector4(data.get(i + 0), data.get(i + 1), data.get(i + 2), data.get(i + 3));
    }
View Full Code Here

Examples of engine.base.Vector4

      while (x >= xres)
        x -= xres;
      while (y >= yres)
        y -= xres;
      int i = (x + border + (y +border) * (xres+2*border)) * 4;
      return new Vector4(data.get(i + 0), data.get(i + 1), data.get(i + 2), data.get(i + 3));
    }
View Full Code Here

Examples of engine.base.Vector4

          for (int x = px * xres - border, localX = border; x < (px + 1) * xres + border; x++, idx++, localX++) {
            float u = (float) x / (float) globalXres;
            float v = (float) y / (float) globalYres;
            u = u - FMath.ffloor(u);
            v = v - FMath.ffloor(v);
            Vector4 temp = new Vector4();
            c.cache_function(temp, tiles, localX, localY, u, v);
            put(idx, temp);
          }
        }
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.