Cory G Watson > Geometry-Primitive-0.24 > Geometry::Primitive::Dimension

Download:
Geometry-Primitive-0.24.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

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>

COPYRIGHT & LICENSE ^

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

syntax highlighting: