• In an array of vertices find the first occurence of a specific vertex, using and epsilon tolerance.

    Parameters

    • vertexList: Vertex[]

      The vertex array to search in.

    • vertex: XYCoords

      A vertex/position to search for. This can be any x-y-tuple and does not necessarily need to be an instance of Vertex.

    • epsilon: number

      The epsilon tolerance to use (should be >= 0). This is a required param to avoid excessive is-undef checking if this function runs in a loop.

    Returns number

    • The first index of a vertex that matched or -1 if no such vertex could be found.

Generated using TypeDoc