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)
Check Out this Related Man Page
Geometry::Primitive::Line(3pm) User Contributed Perl Documentation Geometry::Primitive::Line(3pm)NAME
Geometry::Primitive::Line - A 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->start($point1);
$line->end($point2);
ATTRIBUTES
end
Set/Get the end point of the line.
start
Set/Get the start point of the line.
METHODS
new
Creates a new Geometry::Primitive::Line
contains_point
Returns true if the supplied point is 'on' the line. Accepts either a point object or an x y pair.
grow
Does nothing, as I'm not sure how. Patches or hints welcome.
is_parallel ($other_line)
Returns true if the supplied line is parallel to this one.
is_perpendicular ($other_line)
Returns true if the supplied line is perpendicular to this one.
length
Get the length of the line.
point_end
Get the end point. Provided for Shape role.
point_start
Get the start point. Provided for Shape role.
scale
Does nothing at the moment.
slope
Get the slope of the line.
to_string
Guess!
y_intercept
Returns the Y intercept of this line.
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::Line(3pm)
Can anyone out there explain to me how to multi home a nic? I hate to say it but I'm a windows guy forced to learn Unix. The issue I currently have is I can't changed the ip on eth0, but in order to make it pingable by other servers I need to multi home the nic with a totally seperate Ip. Any help... (1 Reply)
Hello
We had an old system designed in fortran that ran on a IBM RS6000 AIX 3.2 system. The person who designed is long gone. It was replaced with a completely different (non unix) system 6 years ago. We still used it for historical lookups of older information. Well yesterday it died. The... (5 Replies)
Hi,
I am trying to write a script to extract multiple sets of data from a chemistry output file. The problem section is in the following format...
Geometry "geometry" -> "geometry"
1 Pd 46.0000 -0.19290971 0.00535260 0.02297606
2 P ... (7 Replies)
Hi,
I'm primarily a Cisco/Juniper networking guy, so you'll have to forgive my ignorance when it comes to scripting (although I do write simple backup scripts and things of that nature on a regular basis and I run Linux at home, so I am vaguely familiar with it). What I need to do should be... (2 Replies)
Well, i am here coz i have this problem: a guy is pinging me so my internet go down when he wants and the same guy is nuking my ventrilo server that i rent in a good website. I want to know how to protect me against this attack and if is possible do the same to him, i know this guy is using a payed... (2 Replies)
Hi
I have a file with 2 columns with n rows
11873,12594,13402, 12227,12721,14409,
14362,14969,15795,16606,16857,17232,17914,18267,18500,18912, 14829,15038,15947,16765,17055,17742,18061,18369,18554,19759,
14406,16857,17232,17914,18267,24737,29320, ... (8 Replies)
Hi,
I not sure if this is the right place to ask this question and if I'm wrong I apologize.
I'm a systems administrator and have about 5 years of experience. I have worked on
Solaris
HP-UX
*linux
Visualization ( VMWare )
And I'm comfortable with shell and Perl.
Of late,... (0 Replies)