.. a7 Breakout documentation file.

.. _poly-label:

Polygonal Shapes
================

These classes provide the basic geometry functionality for drawing polygona 
shapes.  All of these classes are defined by by an attribute ``points``.  This is 
an even list of numbers that defines the outer boundary of the shape.  For example,
an isosceles triangle would be defined by six numbers (three points) in the form::
	
	points = [0,0,50,100,100,0]

With the exception of :ref:`GPath <gpath-label>`, these shapes are all solid.  Hence 
they also provide primitive collision detection via  the ``contains`` method.  This method takes a 
:class:`Point2` object from the :mod:`cornell` module.

.. toctree::
   :maxdepth: 1 

   gpath
   gtriangle
   gpolygon

:ref:`Return to top level <top-label>`