Module pinky :: Class Point

Class Point

object --+    
         |    
     Shape --+
             |
            Point

A point.

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

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

Properties
  bounding_box
The bounding box of the shape.
  area
The area of a point is always zero.
  centroid
The point itself.

Inherited from object: __class__

Method Details

__init__(self, x, y)
(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

bounding_box

The bounding box of the shape.

Get Method:
unreachable.bounding_box(self)

area

The area of a point is always zero.

Get Method:
unreachable.area(self) - The area of a point is always zero.

centroid

The point itself.

Get Method:
unreachable.centroid(self) - The point itself.