shapes.py ========= .. module:: shapes .. class:: square .. method:: setLength(length) Sets the length of the square's sides. .. method:: getLength() Returns the set length. .. method:: getPerimeter() Returns the perimeter of the square. .. method:: getArea() Returns the area of the square. .. class:: rectangle .. method:: setLength(length) Sets the length of the rectangle. .. method:: getLength() Returns the set length. .. method:: setWidth(width) Sets the width of the rectangle. .. method:: getWidth() Returns the set length. .. method:: getPerimeter() Returns the perimeter of the rectangle. .. method:: getArea() Returns the area of the rectangle. .. class:: circle .. method:: setRadius() Sets the radius of the circle. .. method:: getRadius() Returns the radius of the circle. .. method:: setDiameter() Sets the diameter of the circle. .. method:: getDiameter() Returns the diameter of the circle. .. method:: getPi() Returns pi. .. method:: getCircumference() Returns the circumference of the circle. .. method:: getArea() Returns the area of the circle.