|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gicentre.handy.Simplifier
public class Simplifier
Performs Douglas-Peucker simplification on linear coordinate collections.
Constructor Summary | |
---|---|
Simplifier()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Simplifier()
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |