Examples of heading()


Examples of nallar.tickthreading.util.TableFormatter.heading()

  @Override
  public void processCommand(ICommandSender commandSender, List<String> arguments) {
    StatsHolder statsHolder = new StatsHolder();
    TableFormatter tf = new TableFormatter(commandSender);
    tf.sb.append(VersionUtil.TTVersionString()).append('\n');
    tf
        .heading("")
        .heading("E")
        .heading("TE")
        .heading("C")
        .heading("P")
View Full Code Here

Examples of org.nlogo.agent.Turtle.heading()

              ? world.turtles()
              : world.getBreed(breedName);
      for (int i = 0; i < numberOfTurtles; i++) {
        Turtle turtle = world.createTurtle(breed);
        turtle.colorDouble(Double.valueOf(10.0 * i + 5.0));
        turtle.heading((360.0 * i) / numberOfTurtles);
        workspace.joinForeverButtons(turtle);
      }
    }
    context.ip = next;
  }
View Full Code Here

Examples of org.nlogo.agent.Turtle.heading()

              ? world.turtles()
              : world.getBreed(breedName);
      for (int i = 0; i < numberOfTurtles; i++) {
        Turtle turtle = world.createTurtle(breed);
        turtle.colorDouble(Double.valueOf(10.0 * i + 5.0));
        turtle.heading((360.0 * i) / numberOfTurtles);
        agentset.add(turtle);
        workspace.joinForeverButtons(turtle);
      }
      context.runExclusiveJob(agentset, next);
    }
View Full Code Here

Examples of toxi.geom.Vec2D.heading()

        this.theta = MathUtils.radians(theta);
    }

    public void apply(VerletParticle2D p) {
        Vec2D delta = p.sub(rootPos);
        float heading = MathUtils.floor(delta.heading() / theta) * theta;
        p.set(rootPos.add(Vec2D.fromTheta(heading).scaleSelf(delta.magnitude())));
    }

}
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.