Function simplify2d

  • Reduce the set of coordinates for a curve by eliminating points that are not contributing to the shape of the curve, i.e. multiple points making out a linear segment.

    Parameters

    • inputArr: number[][]

      set of coordinates

    • maxOffset: number = 0.001

      threshold to use for determining if a point is part of a linear line segment

    • maxDistance: number = 10

      points will not be removed if the distance equals or is greater than the given maxDistance

    Returns number[][]

Generated using TypeDoc