Simplifies a linear 2d curve by comparing direction changes to a threshold value.
input array
accessor to array coordinate element
threshold value (default 1e-7)
T[] array of same type as input array
Simplifies a linear 2d curve by comparing direction changes to a threshold value.