Geometry::Primitive::Point(3pm) User Contributed Perl Documentation Geometry::Primitive::Point(3pm)

Geometry::Primitive::Point - An XY coordinate

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

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

Set/Get the X value.

Set/Get the Y value.

Creates a new Geometry::Primitive::Point.

Compares this point to another.

Return this point as a string $x,$y

Cory Watson <gphat@cpan.org>

You can redistribute and/or modify this code under the same terms as Perl itself.

2022-12-12 perl v5.36.0