'**SUMMARY**
Given two screen cooridnates return the bounding box in x,y,w,h format.
This is helpful for drawing regions on the display.
**RETURNS**
The bounding box from two coordinates as a ( x,y,w,h) tuple.
**EXAMPLE**
>>> disp = Display((600,800))
>>> cam = Camera()
>>> while(disp.isNotDone()):
>>>   img = cam.getImage()
>>>   dwn = disp.leftButtonDownPosition()
>>>   up = disp.leftButtonUpPosition()
>>>   if( up is not None and dwn is not None):
>>>     bb = disp.pointsToBoundingBox(up,dwn)
>>>     img.drawRectangle(bb[0],bb[1],bb[2],bb[3])
>>>   img.save(disp)
**SEE ALSO**
:py:meth:`leftButtonUpPostion`
:py:meth:`leftButtonDownPostion`
:py:meth:`rightButtonDownPostion`
:py:meth:`rightButtonUpPostion`
:py:meth:`checkEvents`'

def pointsToBoundingBox(self, pt0, pt1):

    xmax = np.max((pt0[0], pt1[0]))
    xmin = np.min((pt0[0], pt1[0]))
    ymax = np.max((pt0[1], pt1[1]))
    ymin = np.min((pt0[1], pt1[1]))
    return (xmin, ymin, (xmax - xmin), (ymax - ymin))
