@equinor/videx-3d
    Preparing search index...

    Function simplifyCurve2D

    • Simplifies a linear 2d curve by comparing direction changes to a threshold value.

      Type Parameters

      • T

      Parameters

      • array: T[]

        input array

      • accessor: (e: T) => Vec2 = ...

        accessor to array coordinate element

      • threshold: number = 1e-7

        threshold value (default 1e-7)

      Returns T[]

      T[] array of same type as input array