The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

SVG::Estimate::Line - Handles estimating straight lines.

VERSION

version 1.0116

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.