NAME

Geometry::Primitive::Line

DESCRIPTION

Geometry::Primitive::Line represents a straight curve defined by two points.

SYNOPSIS

use Geometry::Primitive::Line;

my $line = Geometry::Primitive::Line->new();
$line->point_start($point1);
$line->point_end($point2);

METHODS

Constructor

new

Creates a new Geometry::Primitive::Line

Instance Methods

length

Get the length of the line.

point_start

Set/Get the start point of the line.

point_end

Set/Get the end point of the line.

slope

Get the slope of the line.

AUTHOR

Cory Watson <gphat@cpan.org>

Infinity Interactive, http://www.iinteractive.com

COPYRIGHT & LICENSE

Copyright 2008 by Infinity Interactive, Inc.

http://www.iinteractive.com

You can redistribute and/or modify this code under the same terms as Perl itself.