method
IVec2.within
IVec2.within(a, b, radius) -> bool
True when the distance between a and b is at most radius (compared squared, no square root).
Example
# doc-check: skip — illustrative
if IVec2.within(hero, heart, 14) { pick_up() }