SVG::Estimate::Line - Handles estimating straight lines.
version 1.0116
my $line = SVG::Estimate::Line->new( transformer => $transform, start_point => [45,13], x1 => 1, y1 => 3, x2 => 4.6, y2 => 3, ); my $length = $line->length;
This class extends SVG::Estimate::Shape and consumes SVG::Estimate::Role::Pythagorean.
Constructor.
Float representing the x start point.
Float representing the y start point.
Float representing the x end point.
Float representing the y end point.
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.