Graphical 2D rectangle with double coordinates
 /// <summary>
 /// Checks if point in rect
 /// </summary>
 /// <param name="rect"></param>
 /// <returns></returns>
 public bool InRect(DRect rect)
 {
     if (X >= rect.X && X <= rect.X + rect.Width && Y >= rect.Y && Y <= rect.Y + rect.Height)
         return true;
     return false;
 }