public static void Main()
Console.WriteLine("Hello World");
Point Rect1 = new Rect(Point(4,5),2,4);
Point Rect2 = new Rect(Point(4,5),1,7);
bool heighIsEnveloped = IsHeightEnveloped(Rect1 ,Rect2);
public static bool IsHeightEnveloped(Point firstRect, Point secondRect){
if (firstRect.h > secondRect.h){
int diffH = firstRect.h - secondRect.h;
int diffH = secondRect.h - firstRect.h;
if (firstRect.w > secondRect.w){
int diffW = firstRect.w - secondRect.w;
int diffW = secondRect.w - firstRect.w;
int deltaX = firstRect.ul.x - secondRect.ul.x;
int deltaY = firstRect.ul.y - secondRect.ul.y;
if(deltaX <= diffH && deltaY <= diffW)
if(deltaX <= diffH && deltaY <= diffW)
if(deltaX <= diffH && deltaY <= diffW)
if(deltaX <= diffH && deltaY <= diffW)
public static Point getPoint(Rect item){
Point myPoint = item.Point
public static bool IsInside(){