public bool IsWithin(Rectangle2D InnerRect)
{
bool inner = false;
if (this.X < InnerRect.X && this.Y < InnerRect.Y && this.X + this.Width > InnerRect.X + InnerRect.Width && this.Y + this.Height > InnerRect.Y + InnerRect.Height)
{
inner = true;
}
return inner;
}