Geomet...:Point(3pm)

πŸ“¦
version 0.24 Β· 2 versions
  • 0.24 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.24 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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. 🫢


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