This is a library to handle cubic bezier curve. Currently it only handles
closed path.
This library is intended to handle any number of control points but it
will create several "sub-curves" following cubic bezier curve (this means
a fixed polynomial degree) so the resulting curve is not only one bezier
curve but it is several bezier curves.
As bezier curve touches the first and last control points only, I use
two real control points as first and last point and two internal (not real
control points) to compose those four points so one cubic bezier curve is
completely defined. E.g., if one uses points p1,p2,p3,and p4, the library
will create curves following p1-p2,p2-p3,p3-p4,and p4-p1, even if only 4
control points exist, 4 curves are created and new internal points are computed,
i.e., around p1, two points are created. Per example, for p1-p2 curve, one
will have p1,p11,p20,p2 to define this curve p1-p2 so p11 and p20 are internal
and computed points. These points were created by using simple tangents around
points (p1,p2,p3,p4).
Initial support to create surfaces using bezier curves is initiated.