I noticed that the width and height of the rect is not included:
//echo -s $inrect(100,100,0,0,100,100)
returns $false
yet:
//echo -s $inrect(0,0,0,0,100,100)
returns $true
I do not know if this is by design, but I feel is an inconsistency where the border should or shouldn't be included.