SVG::Estimate::Shape - Base class for all other shape calculations.
version 1.0108
There are a lot of methods and parameters shared between the various shape classes in SVG::Estimate. This base class encapsulates them all.
This class consumes SVG::Estimate::Role::Round and SVG::Estimate::Role::Pythagorean.
Constructor.
An array ref that describes the position of the cursor (or CNC head) prior to drawing this shape (where it left off from the last object).
A reference to a Image::SVG::Transform object that contains all the transforms for this shape.
Returns the sum of travel_length and shape_length.
travel_length
shape_length
Returns an x and a y value as an array ref of where the drawing will start that can be used by the travel_length method.
Returns the same as draw_start(). Override this if you have an open ended shape like a line.
draw_start()
Returns the distance between start_point and where the drawing of the shape begins, which the developer must define as draw_start()
start_point
Returns the total length of the vectors in the shape.
Returns the minimum position of x that this shape will ever reach.
x
Returns the maximum position of x that this shape will ever reach.
Returns the minimum position of y that this shape will ever reach.
y
Returns the max position of y that this shape will ever reach.
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.