
Math::bezier implements the algorithm for the solution of bezier curves as presented by robert d. miller in graphics gems v, "quick and simple bezier curve drawing".
a new bezier curve is created using the new() constructor, passing a list of (x, y) control points.
use math::bezier;
my @control = ( 0, 0, 10, 20, 30, -20, 40, 0 );
my $bezier = math::bezier->new(@control);
alternately, a reference to a list of control points may be passed.