Package org.nlogo.api

Examples of org.nlogo.api.Turtle3D


            ((w.maxPzcor() + w.minPzcor()) / 2.0) * Renderer.WORLD_SCALE);
  }

  @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

Related Classes of org.nlogo.api.Turtle3D

Copyright © 2018 www.massapicom. 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.