Package horizons :: Package util :: Package shapes :: Module annulus :: Class Annulus
[hide private]
[frames] | no frames]

Class Annulus

source code

Shape --+
        |
       Annulus

Class for the shape of an annulus You can access center and radius of the annulus as public members.

Instance Methods [hide private]
 
__init__(self, center, min_radius, max_radius) source code
 
contains(self, point) source code
 
__str__(self) source code
 
__eq__(self, other) source code
 
__ne__(self, other) source code
 
__hash__(self) 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
Method Details [hide private]

__init__(self, center, min_radius, max_radius)
(Constructor)

source code 
Parameters:
  • center - Point
  • min_radius - int
  • max_radius - int

tuple_iter(self)

source code 
Overrides: Shape.tuple_iter