Package fr.neatmonster.nocheatplus.checks.moving

Examples of fr.neatmonster.nocheatplus.checks.moving.LocationTrace.addEntry()


    double mergeDist = 1000.0;
    LocationTrace trace = new LocationTrace(size, mergeDist);
    double x = 0;
    double y = 0;
    double z = 0;
    trace.addEntry(0 , x, y, z);
    // Note that entries might get split, if the distance to the second last gets too big, so the maximum number of steps must be limited.
    for (int i = 0; i < 1000; i ++) {
      x = randStep(x, 0.5);
      y = randStep(y, 0.5);
      z = randStep(z, 0.5);
View Full Code Here


    // Note that entries might get split, if the distance to the second last gets too big, so the maximum number of steps must be limited.
    for (int i = 0; i < 1000; i ++) {
      x = randStep(x, 0.5);
      y = randStep(y, 0.5);
      z = randStep(z, 0.5);
      trace.addEntry(i + 1, x, y, z);
      if (trace.size() != 2) {
        fail("Wrong size, expect 2, got instead: " + trace.size());
      }
    }
  }
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.