|
NAMEGeometry::Primitive::Bezier - Cubic Bézier Curve DESCRIPTIONGeometry::Primitive::Bezier represents a cubic Bézier curve. SYNOPSIS use Geometry::Primitive::Bezier;
my $line = Geometry::Primitive::Bezier->new(
start => $point1,
control1 => $point2,
control2 => $point3,
end => $point4
);
ATTRIBUTEScontrol1Set/Get the first control point of the curve. control2Set/Get the second control point of the curve. endSet/Get the end point of the curve. startSet/Get the start point of the line. METHODSnewCreates a new Geometry::Primitive::Bezier growDoes nothing, as I'm not sure how. Patches or hints welcome. point_endGet the end point. Provided for Shape role. point_startGet the start point. Provided for Shape role. scaleScales this curve by the amount provided. Multiplies each coordinate by the amount. to_stringGuess! AUTHORCory Watson <gphat@cpan.org> COPYRIGHT & LICENSEYou can redistribute and/or modify this code under the same terms as Perl itself.
|