Method | Description | |
---|---|---|
Linearize ( List |
Creates a list of equally spaced points that lie on the path described by straight line segments between adjacent points in the source list.
|
|
RdpReduce ( List |
"Reduces" a set of line segments by removing points that are too far away. Does not modify the input list; returns a new list with the points removed. The image says it better than I could ever describe: http://upload.wikimedia.org/wikipedia/commons/3/30/Douglas-Peucker_animated.gif The wiki article: http://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm Based on: http://www.codeproject.com/Articles/18936/A-Csharp-Implementation-of-Douglas-Peucker-Line-Ap
|
|
RemoveDuplicates ( List |
Removes any repeated points (that is, one point extremely close to the previous one). The same point can appear multiple times just not right after one another. This does not modify the input list. If no repeats were found, it returns the input list; otherwise it creates a new list with the repeats removed.
|
Method | Description | |
---|---|---|
PerpendicularDistance ( System.Windows.Vector a, System.Windows.Vector b, System.Double abDist, System.Double aCrossB, System.Windows.Vector p ) : System.Double | ||
RdpRecursive ( List |
public static Linearize ( List |
||
src | List |
Source list of points. |
md | System.Double | Distance between points on the new path. |
return | List |
public static RdpReduce ( List |
||
pts | List |
Points to reduce |
error | System.Double | Maximum distance of a point to a line. Low values (~2-4) work well for mouse/touchscreen data. |
return | List |
public static RemoveDuplicates ( List |
||
pts | List |
Initial list of points. |
return | List |