• Expands a given array of points using a width function.

    Parameters

    • pointArray: Point[]

      The array of points to be expanded.

    • scalingFunction: ((v) => number)

      The scaling function

        • (v): number
        • Parameters

          • v: number

          Returns number

    Returns Point[][]

    An array containing two sets of expanded points.