NAME

SVG::Estimate::Path::Arc - Handles estimating arcs.

VERSION

version 1.0005

SYNOPSIS

my $arc = SVG::Estimate::Path::Arc->new(
   transformer     => $transform,
   start_point     => [13, 19],
   point           => [45,13],
   rx              => 1,
   ry              => 3,
   x_axis_rotation => 0,
   large_arc_flag  => 0,
   sweep_flag      => 0,
);

my $length = $arc->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.

rx

Float representing the x radius.

ry

Float representing the y radius.

x_axis_rotation

Float that indicates how the ellipse as a whole is rotated relative to the current coordinate system.

large_arc_flag

Must be 1 or 0. See details http://www.w3.org/TR/SVG/paths.html.

sweep_flag

Must be 1 or 0. See details http://www.w3.org/TR/SVG/paths.html.

this_point (args, t)

Calculate a point on the graph, normalized from start point to end point as t, in 2-D space