NAME
SVG::Estimate::Path::Arc - Handles estimating arcs.
VERSION
version 1.0111
SYNOPSIS
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;
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.
- x
-
The x coordinate for the end-point of the arc.
- y
-
The y coordinate for the end-point of the arc.
- 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