Module pinky :: Class Circle

Class Circle

object --+    
         |    
     Shape --+
             |
            Circle

A circle.

Instance Methods
 
__init__(self, cx, cy, r)
Initialize a circle from the given center point and radius.
 
__repr__(self)
repr(x)
 
transform(self, matrix)
Get a transformed copy of the circle.

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

Properties
  centroid
The mass center of the shape.
  bounding_box
The bounding box of the shape.

Inherited from Shape: area

Inherited from object: __class__

Method Details

__init__(self, cx, cy, r)
(Constructor)

 

Initialize a circle from the given center point and radius.

Overrides: object.__init__

__repr__(self)
(Representation operator)

 

repr(x)

Overrides: object.__repr__
(inherited documentation)

transform(self, matrix)

 

Get a transformed copy of the circle.

The given transform should only translate, scale, and rotate the circle. The absolute values of the x scale and y scale should be equal.

Overrides: Shape.transform

Property Details

centroid

The mass center of the shape.

Get Method:
unreachable.centroid(self)

bounding_box

The bounding box of the shape.

Get Method:
unreachable.bounding_box(self)