Package topo :: Package base :: Module boundingregion :: Class AARectangle
[hide private]
[frames] | no frames]

Class AARectangle

source code


Axis-aligned rectangle class.

Defines the smallest axis-aligned rectangle that encloses a set of points.

Usage: aar = AARectangle( (x1,y1),(x2,y2), ... , (xN,yN) )

Instance Methods [hide private]
 
__init__(self, *points)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__getstate__(self) source code
 
__setstate__(self, state) source code
 
top(self)
Return the y-coordinate of the top of the rectangle.
source code
 
bottom(self)
Return the y-coordinate of the bottom of the rectangle.
source code
 
left(self)
Return the x-coordinate of the left side of the rectangle.
source code
 
right(self)
Return the x-coordinate of the right side of the rectangle.
source code
 
lbrt(self)
Return (left,bottom,right,top) as a tuple
source code
 
centroid(self)
Return the centroid of the rectangle.
source code
 
intersect(self, other) source code
 
width(self) source code
 
height(self) source code
 
empty(self) source code

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

Properties [hide private]
  _bottom
  _left
  _right
  _top

Inherited from object: __class__

Method Details [hide private]

__init__(self, *points)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)