Geometry::Primitive::Dimension - A width and height
Contents
Attributes
height
Set/Get the height value.
width
Set/Get the width value.
Copyright & License
You can redistribute and/or modify this code under the same terms as Perl itself.
perl v5.36.0 2022-12-12 Geometry::Primitive::Dimension(3pm)
Description
Geometry::Primitive::Dimension encapsulates a height and width.
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
Name
Geometry::Primitive::Dimension - A width and height
Synopsis
use Geometry::Primitive::Dimension;
my $point = Geometry::Primitive::Dimeions->new(width => 100, height => 100);
