Geometry::Primitive::Bezier(3pm)

Geometry::Primitive::Bezier3pm

Cubic bézier curve

Usage

  use Geometry::Primitive::Bezier;
  my $line = Geometry::Primitive::Bezier->new(
      start => $point1,
      control1 => $point2,
      control2 => $point3,
      end => $point4
  );

Overview

Geometry::Primitive::Bezier represents a cubic Bézier curve.

Attributes

control1

Set/Get the first control point of the curve.

control2

Set/Get the second control point of the curve.

end

Set/Get the end point of the curve.

start

Set/Get the start point of the line.

Methods

new

Creates a new Geometry::Primitive::Bezier

grow

Does nothing, as I'm not sure how. Patches or hints welcome.

point_end

Get the end point. Provided for Shape role.

point_start

Get the start point. Provided for Shape role.

scale

Scales this curve by the amount provided. Multiplies each coordinate by the amount.

to_string

Guess!

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 3 times.

  1. 6.0–7
  2. 8–9
  3. 10–11
  4. 12–13

Author

Cory Watson <[email protected]>

From libgeometry-primitive-perl 0.24-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.