Geometry::Primitive::Point - An XY coordinate


Geometry-Primitive documentation  | view source Contained in the Geometry-Primitive distribution.

Index


NAME

Top

Geometry::Primitive::Point - An XY coordinate

DESCRIPTION

Top

Geometry::Primitive::Point represents a location in two dimensional space.

SYNOPSIS

Top

  use Geometry::Primitive::Point;

  my $point = Geometry::Primitive::Point->new({ x => 2, y => 0 });

ATTRIBUTES

Top

x

Set/Get the X value.

y

Set/Get the Y value.

METHODS

Top

new

Creates a new Geometry::Primitive::Point.

equal_to

Compares this point to another.

to_string

Return this point as a string $x,$y

AUTHOR

Top

Cory Watson <gphat@cpan.org>

COPYRIGHT & LICENSE

Top


Geometry-Primitive documentation  | view source Contained in the Geometry-Primitive distribution.