Geometry::Primitive::Bezier - Cubic Bézier Curve
Geometry::Primitive::Bezier represents a cubic Bézier curve.
use Geometry::Primitive::Bezier; my $line = Geometry::Primitive::Bezier->new( start => $point1, control1 => $point2, control2 => $point3, end => $point4 );
Set/Get the first control point of the curve.
Set/Get the second control point of the curve.
Set/Get the end point of the curve.
Set/Get the start point of the line.
Creates a new Geometry::Primitive::Bezier
Does nothing, as I'm not sure how. Patches or hints welcome.
Get the end point. Provided for Shape role.
Get the start point. Provided for Shape role.
Scales this curve by the amount provided. Multiplies each coordinate by the amount.
Guess!
Cory Watson <gphat@cpan.org>
You can redistribute and/or modify this code under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'Bézier'. Assuming UTF-8
To install Geometry::Primitive, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geometry::Primitive
CPAN shell
perl -MCPAN -e shell install Geometry::Primitive
For more information on module installation, please visit the detailed CPAN module installation guide.