Geometry::Primitive::Bezier(3pm) User Contributed Perl Documentation Geometry::Primitive::Bezier(3pm)

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.

2022-12-12 perl v5.36.0