SVG::Estimate::Path::Arc - Handles estimating arcs.
version 1.0116
my $arc = SVG::Estimate::Path::Arc->new( transformer => $transform, start_point => [13, 19], x => 45, y => 13, rx => 1, ry => 3, x_axis_rotation => 0, large_arc_flag => 0, sweep_flag => 0, ); my $length = $arc->length;
This class extends SVG::Estimate::Path::Command and consumes SVG::Estimate::Role::Pythagorean, SVG::Estimate::Role::SegmentLength, and SVG::Estimate::Role::EndToPoint.
Constructor.
The x coordinate for the end-point of the arc.
The y coordinate for the end-point of the arc.
Float representing the x radius.
Float representing the y radius.
Float that indicates how the ellipse as a whole is rotated relative to the current coordinate system.
Must be 1 or 0. See details http://www.w3.org/TR/SVG/paths.html.
Calculate a point on the graph, normalized from start point to end point as t, in 2-D space
To install SVG::Estimate, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SVG::Estimate
CPAN shell
perl -MCPAN -e shell install SVG::Estimate
For more information on module installation, please visit the detailed CPAN module installation guide.