added override methods to Rectangle
renamed methods in Polygon

methods:
getSegments() -> segments()
intersect() -> intersections()
getBounds() -> bounds()
join() -> merge()
regularPolygon() -> regular()