All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jaitools.jts.SmootherControl Maven / Gradle / Ivy

Go to download

Provides a single jar containing all JAI-tools modules which you can use instead of including individual modules in your project. Note: It does not include the Jiffle scripting language or Jiffle image operator.

The newest version!
package jaitools.jts;

/**
 * Defines methods to control the smoothing process.
 * {@code LineSmoother} has a default implementation
 * that specifies a constant number of vertices in smoothed
 * segments and no lower bound on the distance between
 * input vertices for smoothing.
 * 

* To customize smoothing, pass your own implementation * to {@link LineSmoother#setControl(jaitools.jts.LineSmoother.Control) }. */ public interface SmootherControl { /** * Gets the minimum distance between input vertices * for the segment to be smoothed. Segments smaller * than this will be copied to the output unchanged. * * @return minimum segment length for smoothing */ double getMinLength(); /** * Given an input segment length, returns the number * of vertices to use for the smoothed segment. This * number includes the segment end-points. * * @param length input segment length * * @return number of vertices in the smoothed segment * including the end-points */ int getNumVertices(double length); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy