• This function generates a Bézier curve from the given control points.

    Parameters

    • coords: Coordinate[]

      The control points

    • numPoints: number = 100

      The number of points to generate

    Returns number[]

    The Bézier curve as a list of 3D coordinates