round static method
Rounds to 1 decimal place to reduce noise in coordinates.
Propagates NaN/Infinite as-is — _position detects them with .isFinite
before including the coordinates in the result.
Implementation
@visibleForTesting
static double round(double v) {
if (!v.isFinite) return v;
return (v * 10).roundToDouble() / 10;
}