• Remove all duplicate neighbours from the given polygon.

    Imagagine a polygon: [ [0,0], [10,10], [10,10], [10,10], [20,20], [10,10], [30,30], [0,0] ]

    The returned vertex array will then be: [ [10,10], [20,20], [10,10], [30,30], [0,0] ]

    Duplicate neighbours (and only neightours) of a run of any length will be removed.

    Parameters

    • vertices: Vertex[]

      The polygon vertices to use.

    • Optional epsilon: number

      The epsilon area to use around each vertex to check equality.

    Returns Vertex[]

    Method

    clearPolygonDuplicateVertices

Generated using TypeDoc