Module pinky :: Class Polygon

Class Polygon

object --+    
         |    
     Shape --+
             |
            Polygon

A polygon.

Instance Methods
 
__init__(self, points)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
__repr__(self)
repr(x)
 
transform(self, matrix)
Get a transformed copy of the shape.
 
repair(self, epsilon=0.0)

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties
  area
The area of the polygon.
  bounding_box
The bounding box of the shape.

Inherited from Shape: centroid

Inherited from object: __class__

Method Details

__init__(self, points)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

 

repr(x)

Overrides: object.__repr__
(inherited documentation)

transform(self, matrix)

 

Get a transformed copy of the shape.

Overrides: Shape.transform
(inherited documentation)

Property Details

area

The area of the polygon.

See: http://mathworld.wolfram.com/PolygonArea.html

Get Method:
unreachable.area(self) - The area of the polygon.

bounding_box

The bounding box of the shape.

Get Method:
unreachable.bounding_box(self)