Added functionality to Rectangle

Functions to substract another rectangles position from ours, used to
help transform camera and entity  rectangles.

Added a function to calculate  x2 and y2 based on x1 and y1 and width
and height.