setDistanceTolerance method
Sets the distance tolerance for the simplification. All vertices in the simplified geometry will be within this distance of the original geometry. The tolerance value must be non-negative. A tolerance value of zero is effectively a no-op.
@param distanceTolerance the approximation tolerance to use
Implementation
void setDistanceTolerance(double distanceTolerance) {
if (distanceTolerance < 0.0)
throw new ArgumentError("Tolerance must be non-negative");
lineSimplifier.setDistanceTolerance(distanceTolerance);
}