• Calculates a point on the curve, for a given t value between 0 and 1.

    Parameters

    • points: number[]

      Array of control points for the curve.

    • t: number

      A value between 0 and 1. 0 is the beginning of the curve, 1 is the end.

    Returns number