NAME

SVG::Estimate::Path::Command - Base class for all path calculations.

VERSION

version 1.0115

DESCRIPTION

There are a lot of methods and parameters shared between the various shape classes in SVG::Estimate::Path. This base class encapsulates them all.

INHERITANCE

This class consumes SVG::Estimate::Role::Round.

METHODS

new( properties )

Constructor.

properties
start_point

An array ref that describes the position of the cursor (or CNC head) prior to drawing this path (where it left off from the last object).

transformer

A reference to a Image::SVG::Transform object that contains all the transforms for this path segment.

end_point ( )

Returns an array ref that contains an end point of where this command left off to fill the start_point of the next command.

shape_length ( )

Returns the total shape length of the vector in the path command.

travel_length ( )

Returns the total travel length of the vector in the path command.

min_x ( )

Returns the minimum position of x that this path segment will ever reach.

max_x ( )

Returns the maximum position of x that this path segment will ever reach.

min_y ( )

Returns the minimum position of y that this path segment will ever reach.

max_y ( )

Returns the max position of y that this path segment will ever reach.