NAME
SVG::Estimate::Line - Handles estimating straight lines.
SYNOPSIS
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;
INHERITANCE
This class extends SVG::Estimate::Shape and consumes SVG::Estimate::Role::Pythagorean.
METHODS
new()
Constructor.
- x1
-
Float representing the x start point.
- y1
-
Float representing the y start point.
- x2
-
Float representing the x end point.
- y2
-
Float representing the y end point.