public class Simplifier
extends java.lang.Object
Constructor and Description |
---|
Simplifier() |
Modifier and Type | Method and Description |
---|---|
static float[] |
getSimplifiedX()
Provides the simplified x coordinates.
|
static float[] |
getSimplifiedY()
Provides the simplified y coordinates.
|
static void |
simplify(java.util.ArrayList<processing.core.PVector> origCoords,
float tol)
Creates a simplified version of the given collection of coordinates.
|
public static void simplify(java.util.ArrayList<processing.core.PVector> origCoords, float tol)
origCoords
- Coordinates to be simplified.tol
- Douglas-Peucker tolerance (in spatial units).public static float[] getSimplifiedX()
public static float[] getSimplifiedY()