New rect2d functionality