Geomet...ension(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

✨ NAME ✨

Geometry::Primitive::Dimension β€” it's literally just a width and a height bestie, that's the whole vibe πŸ’–

This is one of the Geometry::Primitive pages (the 3pm kind, the User Contributed Perl Documentation kind 🫢), so if you're reading this in a terminal, hi, welcome, you're doing amazing.


🌸 DESCRIPTION 🌸

Okay so Geometry::Primitive::Dimension is a little container object that encapsulates a height and a width. That's it. That's the girl. πŸ‘‘

It holds two numbers, a height and a width, and it's very chill about it. No drama, no extra features, just a rectangle's worth of self-esteem.


πŸŽ€ SYNOPSIS πŸŽ€

Here's how you summon one, copied exactly, typos and all, because we do not edit the sacred text πŸ’…:

use Geometry::Primitive::Dimension;

my $point = Geometry::Primitive::Dimeions->new(width => 100, height => 100);

Yes, it says Dimeions. Yes, it says $point. We're not touching it. It's iconic. It's part of the lore. 😭


πŸ¦‹ ATTRIBUTES πŸ¦‹

height

Set/Get the height value. That's the tall number. The vertical situation. πŸ“

width

Set/Get the width value. That's the wide number. The horizontal moment. 🌈


⭐ METHODS ⭐

new

Creates a new Geometry::Primitive::Point. (Yes, it says Point even though we're in the Dimension page β€” the manpage said it, so I'm saying it, no cap. πŸ™ˆ)

equal_to

Compares this dimesion to another. Dimension-vs-dimension, one on one, and it'll tell you if they match. πŸ”₯

to_string

Return this dimesion as a string, in the form $widthx$height. So like, width, then an x, then height. Slay. ✨


πŸ’œ AUTHOR πŸ’œ

Cory Watson <gphat@cpan.org> β€” the queen who built this. Bow. 🫢


You can redistribute and/or modify this code under the same terms as Perl itself. So like, same energy as Perl, same rules, we love that for you. 🌸


And that's the page bestie!! Go forth and dimension responsibly πŸŽ€

Mwah πŸ’‹ β€” this was perl v5.36.0, dated 2022-12-12, signing off from the Geomet...ension(3pm) page. Periodt. ⭐

πŸ“¦ where this page comes from