NAME

SVG::Estimate::Path::CubicBezier - Handles estimating cubic bezier curves.

VERSION

version 1.0108

SYNOPSIS

my $curve = SVG::Estimate::Path::CubicBezier->new(
   transformer     => $transform,
   start_point     => [13, 19],
   point           => [45,13],
   control1        => [10,3],
   control2        => [157,40],
);

my $length = $curve->length;

INHERITANCE

This class extends SVG::Estimate::Path::Command and consumes SVG::Estimate::Role::Pythagorean, SVG::Estimate::Role::SegmentLength, and SVG::Estimate::Role::EndToPoint.

METHODS

new()

Constructor.

point

An array ref containing two floats that represent a point.

control1

An array ref containing two floats that represent a point.

control2

An array ref containing two floats that represent a point.