Geomet...:Point(3pm)
π Geometry::Primitive::Point β an XY coordinate π
okay bestie, so this is a page from the User Contributed Perl Documentation, manual section 3pm, and it's literally just called Geometry::Primitive::Point. it's giving "one job, done perfectly" energy and honestly? we stan. π
β¨ NAME β¨
Geometry::Primitive::Point β it's an XY coordinate, bestie. that's the whole thing. two numbers, vibes immaculate. π
πΈ DESCRIPTION πΈ
Geometry::Primitive::Point represents a location in two dimensional space. that's it. that's the girl. a little point, floating in 2D, knowing exactly where she is at all times. main character energy fr fr. π¦
π SYNOPSIS π
here's the vibe check, copy-paste ready:
use Geometry::Primitive::Point;
my $point = Geometry::Primitive::Point->new({ x => 2, y => 0 });
see? you import her, you make her, you give her an x and a y. iconic. π₯
π ATTRIBUTES π
π x
Set/Get the X value. yes literally, set it, get it, live your truth. β¨
π y
Set/Get the Y value. same deal, but vertical. she's standing tall. π
π§ METHODS π§
π new
Creates a new Geometry::Primitive::Point. new point, who dis. fresh out the box, ready for coordinates. π
π equal_to
Compares this point to another. so like, are you two the same point or not, no cap. π«
π to_string
Return this point as a string $x,$y β just the x, a comma, and the y. clean, simple, readable. periodt. π
π AUTHOR π
Cory Watson <gphat@cpan.org> β the legend behind this whole operation. π«Ά
π COPYRIGHT & LICENSE π
You can redistribute and/or modify this code under the same terms as Perl itself. so like, go off, remix it, share it, it's all good. π
ngl that's the whole page. two coordinates, three methods, zero drama. slay. π
and that's a wrap, bestie β this was Geomet...:Point(3pm) from perl v5.36.0, dated 2022-12-12. mwah. ππΈ
π¦ 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