Getting the Rect from the bounds

Hello,
I’ve got a sprite that I’m trying to obtain the rect for, and subsequently determine if a position is within that rect.

After a lot of trial and error, I think I’ve got it correct, but I don’t understand why it works.
Where I’m defining “myRect”, I’ve found that I can get the correct “top” value by specifying extent.y, which is the bound.min.y value of the game object.
That doesn’t make sense to me!

Surely the bound.max.y value would be the correct value to use? However, when I do that, the rect’s top ends up above the sprite and the bottom of the rect is at the upper most portion of the sprite.

Am I misunderstanding how this is supposed to work, have I arrived at the correct implementation, but done it the wrong way?
Or will I later find out that my implementation seems to be correct, but it’s actually not.

Below is my implementation:
“Gesture.position” is a screen based position.

        testText.text += "bounds " + gameObject.renderer.bounds +"\n";

        Vector3 origin = myCamera.WorldToScreenPoint(new Vector3(gameObject.renderer.bounds.min.x, gameObject.renderer.bounds.max.y, 0f));
        Vector3 extent = myCamera.WorldToScreenPoint(new Vector3(gameObject.renderer.bounds.max.x, gameObject.renderer.bounds.min.y, 0f));

        testText.text += "origin " + origin + "\n";
        testText.text += "extent " + extent + "\n";

        testText.text += "gesture position " + gesture.position + "\n";

        Rect myRect = new Rect(origin.x, extent.y, extent.x - origin.x, origin.y - extent.y);//screen based position
        testText.text += "myrect "+myRect;

        if (myRect.Contains(gesture.position))
        {
            testText.text += "INSIDE" + "\n";
        }
        else
        {
            testText.text += "OUTSIDE" + "\n";
        }

In screen-space, the origin is at the top-left of the screen. So while maxY is above minY on the world-axis, maxY will be less than minY in screen values.

World : Screen
  1   :   0--
  |   :   |
  |   :   |
  |   :   |
  0-- :   1

nice and simple, thank you.