prev.set(strokes.get(sessionID).getLastPoint());
if (prev.distanceTo(v) > minPointsDistance) {
strokes.get(sessionID).addPoint(new GmlPoint(v, time, pressure, rotation, direction, thickness));
}
else {
LOGGER.log(Level.FINE, "Skipped, too close from previous point: "+prev.distanceTo(v));
}
}
else { // First point, add it
strokes.get(sessionID).addPoint(new GmlPoint(v, time, pressure, rotation, direction, thickness));
}