Array

public extension Array where Element == Coordinate

Available where Element == Coordinate

  • Helper for simplifying points from a collection if the are closer than a specified threshold.

    Declaration

    Swift

    func simplifyRDP(threshold epsilon: Double) -> [Coordinate]

    Parameters

    threshold

    The threshold predicate in for removing points. A point is removed if it is closer to its neighboring segment according to the Ramer-Douglas-Peucker algorithm.

    Return Value

    An array of Coordinate values.