Geometry::Primitive::Dimension.3pm

Langue: en

Version: 2010-01-10 (ubuntu - 24/10/10)

Section: 3 (Bibliothèques de fonctions)

NAME

Geometry::Primitive::Dimension - A width and height

DESCRIPTION

Geometry::Primitive::Dimension encapsulates a height and width.

SYNOPSIS

   use Geometry::Primitive::Dimension;
 
   my $point = Geometry::Primitive::Dimeions->new(width => 100, height => 100);
 
 

ATTRIBUTES

height

Set/Get the height value.

width

Set/Get the width value.

METHODS

new

Creates a new Geometry::Primitive::Point.

equal_to

Compares this dimesion to another.

to_string

Return this dimesion as a string $widthx$height

AUTHOR

Cory Watson <gphat@cpan.org> You can redistribute and/or modify this code under the same terms as Perl itself.