Package horizons :: Package util :: Package shapes :: Module point :: Class ConstPoint
[hide private]
[frames] | no frames]

Class ConstPoint

source code

python.Const --+
               |
   Shape --+   |
           |   |
       Point --+
               |
              ConstPoint

An immutable Point

Instance Methods [hide private]
    Inherited from python.Const
 
__setattr__(self, name, value)
Disallow changing an already set attribute.
source code
    Inherited from Point
 
__add__(self, other) source code
 
__eq__(self, other) source code
 
__hash__(self) source code
 
__init__(self, x, y) source code
 
__str__(self)
nice representation for debugging purposes
source code
 
__sub__(self, other) source code
 
contains(self, point)
For compatibility with Rect
source code
 
copy(self) source code
 
iter_without_border(self) source code
 
offset(self, x_offset, y_offset)
Returns a Point with an offset of x, y relative to this Point.
source code
 
to_tuple(self)
Returns point as a tuple
source code
 
tuple_iter(self) source code
    Inherited from Shape
 
__iter__(self)
Return all coordinates in the shape as points.
source code
 
distance(self, other) source code
 
get_coordinates(self)
Return all coordinates in the shape.
source code
 
get_distance_function(self, other) source code
Properties [hide private]
    Inherited from Point
  center
Returns the center of the point (this makes Point interface more coherent with Rect).