geometry::primitive::rectangle(3pm) [debian man page]
Geometry::Primitive::Rectangle(3pm) User Contributed Perl Documentation Geometry::Primitive::Rectangle(3pm)NAME
Geometry::Primitive::Rectangle - 4 sided polygon
DESCRIPTION
Geometry::Primitive::Rectangle a space defined by a point, a width and a height.
SYNOPSIS
use Geometry::Primitive::Rectangle;
my $poly = Geometry::Primitive::Rectangle->new();
$poly->add_point($point1);
$poly->height(100);
$poly->width(100);
ATTRIBUTES
height
Set/Get the height of this Rectangle.
origin
Set/Get the origin of this rectangle.
width
Set/Get the width of this Rectangle.
METHODS
new
Creates a new Geometry::Primitive::Rectangle
area
Returns the area of this rectangle.
get_points
Get the points that make up this Rectangle.
point_end
Get the end point. Returns the origin. Provided for Shape role.
point_start
Get the start point. Returns the origin. Provided for Shape role.
scale ($amount)
Scales the hieght and width of this rectangle by the amount specified.
AUTHOR
Cory Watson <gphat@cpan.org>
COPYRIGHT & LICENSE
You can redistribute and/or modify this code under the same terms as Perl itself.
perl v5.10.1 2010-01-10 Geometry::Primitive::Rectangle(3pm)
Check Out this Related Man Page
Geometry::Primitive(3pm) User Contributed Perl Documentation Geometry::Primitive(3pm)NAME
Geometry::Primitive - Primitive Geometry Entities
SYNOPSIS
Geometry::Primitive is a device and library agnostic system for representing geometric entities such as points, lines and shapes. It
provides simple objects and many convenience methods you would expect from a simple geometry library.
use Geometry::Primitive::Point;
my $foo = Geometry::Primitive::Point->new(x => 1, y => 3);
...
DISCLAIMER
I'm not a math guy. I hate math. I will likely learn a lot in the process of making this library. If you are a math person you will
probably look at this and find many things missing or wrong. Patches are encouraged. I will likely find that I've done something completely
wrong having taken geometry over 10 years ago. C'est la vie.
ENTITIES
Arc
Bezier
Circle
Ellipse
Line
Point
Polygon
Rectangle
SERIALIZATON
All of the entities in this library support serialization via MooseX::Storage. This is primarily to support serialization in consumers of
this library, but may be useful for other purposes. All classes are set to JSON format and File IO.
AUTHOR
Cory Watson, "<gphat@cpan.org>"
ACKNOWLEDGEMENTS
Many of the ideas here come from my experience using the Cairo library.
BUGS
Please report any bugs or feature requests to "bug-geometry-primitive at rt.cpan.org", or through the web interface at
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Geometry-Primitive>. I will be notified, and then you'll automatically be notified of
progress on your bug as I make changes.
COPYRIGHT & LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2010-01-10 Geometry::Primitive(3pm)
Hi,
In My Program I have HEXA value in a string array as below :
char hexa="0xabcd1234"; //This is how I'm getting source data.
Actaully I want this hexa value to be decremented with -1
and store it in another string as "0xabcd1234".
Can any body help me how to do that..?
I... (1 Reply)
in terms of bits, what is the width of a User ID? seems like I remember it being 32-bit (maybe wrong) but I can't find anything anywhere on ther subject. (4 Replies)
Hi,
Can anyone teach me by using perl.
let say i have an input file that content like below:
->line_01
aaabbbDDDTTTUSSy
->line_02
cccdddEEESSSGTTT
->line_03
xxxxyyyyzzzzzzzzzz
want the above input file content to become output file like below (every 2nd line after ->... become mono... (0 Replies)