public bool Intersects(Rectangle rect) { return(Collision.CheckAABBvLineCollision2(rect.TopLeft(), rect.Size(), a, b) || Collision.CheckAABBvLineCollision2(rect.TopLeft(), rect.Size(), b, c) || Collision.CheckAABBvLineCollision2(rect.TopLeft(), rect.Size(), c, a) || Contains(rect.TopLeft())); }