Geometry::Primitive(3pm)

Geometry::Primitive3pm

Primitive geometry entities

Usage

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.

Acknowledgements

Many of the ideas here come from my experience using the Cairo library.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 3 times.

  1. 6.0–7
  2. 8–9
  3. 10–11
  4. 12–13

Author

Cory Watson, "<[email protected]>"

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.

From libgeometry-primitive-perl 0.24-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.