Return an array of cuic bezier curves that defines a curve passing through provided points.

This method automatically computes the cubic bezier control points necessary to create a smooth curve with points as intermediary endpoints. An error is thrown if an array with fewer than two points is provided.

The result of this function may be provided directly to the g.Path() constructor in order to create a Path object from these curves.