trace.addEntry(i + 1, x, y, z);
if (Math.abs(trace.size() - (1 + i / 2)) > 1 ) {
fail("Wrong size, expect roughly half of " + (i + 1) + ", got instead: " + trace.size());
}
}
Iterator<TraceEntry> it = trace.oldestIterator();
while (it.hasNext()) {
if (it.next().lastDistSq > 1.0) {
fail("Spacing should be smaller than 1.0 (sq / actual).");
}
}