Tirex:...::Range(3pm)

✨ NAME ✨

Tirex::Metatiles::Range β€” it's giving "range of metatiles", bestie πŸ’…

This is Tirex::...::Range, a lil' module from the User Contributed Perl Documentation, and no cap it's here to make your metatile looping era effortless. πŸ¦‹


🌸 SYNOPSIS 🌸

use Tirex::Metatiles::Range;

$range = Tirex::Metatiles::Range->new( z => '3-4', lon => '8-9', lat => '48-49' );

Like… that's it. That's the whole vibe. Load it, build a range, go off. πŸ”₯


πŸ’– DESCRIPTION πŸ’–

Okay so picture this: a range of metatiles for one or more maps, one or more zoom levels, and an x/y range that corresponds to a lon/lat bounding box. That's the whole concept. Iconic, honestly.

It exists so you can easily iterate over all those metatiles without wanting to scream. Periodt. πŸ‘‘


πŸŽ€ METHODS πŸŽ€

⭐ Tirex::Metatiles::Range->new(...)

Create new range. Baby's first range, so to speak. 🍼✨

🌈 $range->reset()

Reset the range, so that the next call to next() will return the first metatile in the range. Rewind era. βͺ

Returns the range itself β€” so yeah, it hands you back the range. 🫢

πŸ“ $range->count()

Calculates how many metatiles there are in this range. Math girlies rise. πŸ”’πŸ’…

πŸ¦‹ $range->get_metatiles()

Return the number of metatiles you've already got out of this range with next(). It's the "how far have we gotten" counter, and bestie it keeps receipts. 🧾

πŸ’œ $range->to_s()

Return a string describing the range. For when you need it in writing. πŸ’Œ

πŸ‘‘ $range->next()

Get the next metatile from the range. The main character method, fr fr.

Returns undef if there are no more metatiles. 😭 That's the end of the road, no more crumbs.


🫢 lowkey reminder: keep calling next() until you hit that undef, and if you want a fresh start, reset() has your back. iykyk.

Signing off β€” this whole page is from perl v5.40.1, dated 2026-08-09, and it's the Tirex:...::Range(3pm) page, slay. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from