Examples of ycor()


Examples of org.nlogo.api.Turtle.ycor()

    if (agent instanceof Turtle) {
      Turtle turtle = (Turtle) agent;
      spotlightSize = turtle.size() * 2;
      xcor = turtle.xcor();
      ycor = turtle.ycor();
      wrap = true;
    } else if (agent instanceof Link) {
      Link link = (Link) agent;
      spotlightSize = link.size();
      xcor = link.midpointX();
View Full Code Here

Examples of org.nlogo.api.Turtle3D.ycor()

  }

  @Override
  double[] getTurtleCoords(Turtle turtle, double height) {
    Turtle3D t = (Turtle3D) turtle;
    double[] coords = new double[]{t.xcor(), t.ycor(), t.zcor()};
    coords[0] = world.wrappedObserverX(coords[0]) * Renderer.WORLD_SCALE;
    coords[1] = world.wrappedObserverY(coords[1]) * Renderer.WORLD_SCALE;
    coords[2] = ((World3D) world).wrappedObserverZ(coords[2]) * Renderer.WORLD_SCALE;

    return coords;
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.