Examples of minPzcor()


Examples of org.nlogo.api.World3D.minPzcor()

    // don't clip in the z-direction with 2D models.
    if (w.worldDepth() > 1) {
      // offset the planes ever so slightly so they don't cut off the tops of the patches
      renderClippingPlane
          (gl, new double[]
              {0.0f, 0.0, 1.0f, (float) (-(w.minPzcor() - 0.5) * WORLD_SCALE) + 0.01f},
              GL.GL_CLIP_PLANE4);
      renderClippingPlane
          (gl, new double[]
              {0.0, 0.0, -1.0, (float) ((w.maxPzcor() + 0.5) * WORLD_SCALE) + 0.01f},
              GL.GL_CLIP_PLANE5);
View Full Code Here

Examples of org.nlogo.api.World3D.minPzcor()

    World3D w = (World3D) world;

    gl.glTranslated
        (((world.maxPxcor() + world.minPxcor()) / 2.0) * Renderer.WORLD_SCALE,
            ((world.maxPycor() + world.minPycor()) / 2.0) * Renderer.WORLD_SCALE,
            ((w.maxPzcor() + w.minPzcor()) / 2.0) * Renderer.WORLD_SCALE);
  }

  @Override
  double[] getTurtleCoords(Turtle turtle, double height) {
    Turtle3D t = (Turtle3D) turtle;
View Full Code Here

Examples of org.nlogo.api.World3D.minPzcor()

    if (deltaz >= deltay && deltaz >= deltax) {
      zinc = 1;
      t = 1 / (ray[1][2] - ray[0][2]);
      xinc = (ray[1][0] - ray[0][0]) * t;
      yinc = (ray[1][1] - ray[0][1]) * t;
      min = w.minPzcor();
      max = w.maxPzcor();
      zi = min;
      xi -= xinc * ray[0][2] * scale - (min * xinc);
      yi -= yinc * ray[0][2] * scale - (min * yinc);
    } else if (deltay >= deltax) {
View Full Code Here

Examples of org.nlogo.api.World3D.minPzcor()

      double y = yi;
      double z = zi;

      if ((x < world.maxPxcor() + 0.5) && (x >= world.minPxcor() - 0.5) &&
          (y < world.maxPycor() + 0.5) && (y >= world.minPycor() - 0.5) &&
          (z < w.maxPzcor() + 0.5) && (z >= w.minPzcor() - 0.5)) {
        try {
          agents.add(w.getPatchAt(wrapX(x + w.followOffsetX()),
              wrapY(y + w.followOffsetY()),
              wrapZ(z + w.followOffsetZ())));
        } catch (AgentException e) {
View Full Code Here

Examples of org.nlogo.api.WorldDimensions3D.minPzcor()

  @Override
  public void createPatches(WorldDimensions dim) {
    WorldDimensions3D d = (WorldDimensions3D) dim;
    createPatches(dim.minPxcor(), dim.maxPxcor(),
                  dim.minPycor(), dim.maxPycor(),
                  d.minPzcor(), d.maxPzcor());
  }

  @Override
  public void createPatches(int minPxcor, int maxPxcor,
                            int minPycor, int maxPycor) {
View Full Code Here

Examples of org.nlogo.api.WorldDimensions3D.minPzcor()

    } else if (variableName.equalsIgnoreCase("WORLD-HEIGHT")) {
      d.minPycor_$eq(growMin(_minPycor, _maxPycor, value, d.minPycor()));
      d.maxPycor_$eq(growMax(_minPycor, _maxPycor, value, d.maxPycor()));
    } else if (variableName.equalsIgnoreCase("WORLD-DEPTH")) {
      WorldDimensions3D wd = (WorldDimensions3D) d;
      wd.minPzcor_$eq(growMin(_minPzcor, _maxPzcor, value, wd.minPzcor()));
      wd.maxPzcor_$eq(growMax(_minPzcor, _maxPzcor, value, wd.maxPzcor()));
    }
    return d;
  }
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.