NAME
Geometry::Primitive::Point
DESCRIPTION
Geometry::Primitive::Point represents a location in two dimensional space.
SYNOPSIS
use Geometry::Primitive::Point;
my $point = Geometry::Primitive::Point->new({ x => 2, y => 0 });
METHODS
Constructor
- new
-
Creates a new Geometry::Primitive::Point.
Instance Methods
- equal_to
-
Compares this point to another.
- to_string
-
Return this point as a string $x,$y
- x
-
Set/Get the X value.
- y
-
Set/Get the Y value.
AUTHOR
Cory Watson <gphat@cpan.org>
Infinity Interactive, http://www.iinteractive.com
COPYRIGHT & LICENSE
Copyright 2008 by Infinity Interactive, Inc.
You can redistribute and/or modify this code under the same terms as Perl itself.