sympy/sympy — pull request #1182 by smichr (2012-03-27 16:41:43+00:00)
Title: geometry upgrade

A student who was working on his own little function for polygons asked me to check his work and when I checked it in sympy I found that geometry had some issues which I addressed today.

The length and area properies were added to a RegularPolygon.

The Ellipse and RegularPolygon need their own scale methods since
the former has no vertices and the latter isn't stored as a
series of vertices.

Ellipse got its own rotate method which is there to just explain
why it is not rotate in the same was as othe objects.

The Curve got rotate, scale and translate methods added. These methods
were modified in GeometryEntity by removing the Point handling; the
Point handling portions are now Point methods.

Functions to calculate the rotation, scaling and translation
matrices was added to entity and a transform method that uses
a such a matrix was added to Point.