---
name: "Geometry::Primitive::Point"
section: "3pm"
platform: "linux"
package: "libgeometry-primitive-perl"
version: "0.24-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Geometry::Primitive::Point"
---

# Geometry::Primitive::Point(3pm)

An XY coordinate

## NAME

Geometry::Primitive::Point - An XY coordinate

## 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 });
```

## ATTRIBUTES

### x

Set/Get the X value.

### y

Set/Get the Y value.

## METHODS

### 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

Cory Watson \<gphat@cpan.org\>

## COPYRIGHT & LICENSE

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