Geomet...imitive(3pm)
π Geometry::Primitive β bestie edition π
okay so this is Geometry::Primitive(3pm), from the User Contributed Perl Documentation set. it's the page about primitives. yes, geometry primitives. don't run away yet, i promise it's cute. πΈ
β¨ NAME β¨
Geometry::Primitive β Primitive Geometry Entities. that's it. that's the whole name. points and lines and shapes, the little building blocks. π
π SYNOPSIS π
so Geometry::Primitive is a device-agnostic and library-agnostic system for representing geometric entities β like points, lines and shapes. it gives you simple objects plus a whole bunch of convenience methods you'd expect from a simple geometry library. simple objects, big energy. β¨
use Geometry::Primitive::Point;
my $foo = Geometry::Primitive::Point->new(x => 1, y => 3);
...
like. look at that. x => 1, y => 3. iconic. π
π DISCLAIMER π
okay bestie, real talk, direct from the author's own heart:
I'm not a math guy. I hate math.
π he said it fr fr. he'll likely learn a lot in the process of making this library. and if you are a math person, you will probably look at this and find many things missing or wrong. patches are encouraged. π«Ά he will likely find that he's done something completely wrong, having taken geometry over 10 years ago. C'est la vie. π
π¦ ENTITIES π¦
the whole roster, no skips:
ArcBezierCircleEllipseLinePointPolygonRectangle
the way that's literally the entire cast of a geometry class πβ¨
π SERIALIZATON π
(yes, that's how the heading is spelled, we don't fix it, we respect it π)
all of the entities in this library support serialization via MooseX::Storage. this is primarily to support serialization in consumers of this library, but it may be useful for other purposes too. all classes are set to JSON format and File IO. no cap. π₯
π AUTHOR π
Cory Watson, "<gphat@cpan.org>". main character energy, honestly. π
π ACKNOWLEDGEMENTS π
many of the ideas here come from his experience using the Cairo library. shoutout Cairo, you ate. π
π BUGS π
found a bug? want a feature? 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>.
he will be notified, and then you'll automatically be notified of progress on your bug as he makes changes. so like. you're in the loop. it's a whole thing. π«Ά
β COPYRIGHT & LICENSE β
this program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. periodt. π
and that's the whole page bestie, thanks for reading, mwah π
signing off: this was perl v5.36.0, dated 2022-12-12, from the Geomet...imitive(3pm) era of the manual pages. slay. β¨ππ¦
π¦ where this page comes from
- debian bookworm: libgeometry-primitive-perl 0.24-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libgeometry-primitive-perl 0.24-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libgeometry-primitive-perl 0.24-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libgeometry-primitive-perl 0.24-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libgeometry-primitive-perl 0.24-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms