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 callingnext()until you hit thatundef, 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
- ubuntu stonking: tirex 0.8.0+ds-2build3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms