added Polygon.rect()