A rectangle with all four sides equal in length is called a square . A rectangle is a special case of a parallelogram , whose opposite sides are equal in length and parallel and connecting sides are perpendicular to each other .