Optionalvectors: number[][]OptionalcheckFirstAndLast: booleanOptionaltolerance: numberThe vectors to filter; their order is kept.
When true, a last vector that repeats the first is dropped as well, which closes a loop of points cleanly.
Two vectors count as the same when every entry differs by less than this.
Vectors to filter with
vector.removeConsecutiveDuplicateVectors: only a vector that repeats its predecessor is dropped, and optionally a last vector that repeats the first.