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

Class Annulus

source code

Shape --+

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
Return all coordinates in the shape as points.
source code
distance(self, other) source code
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)

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


source code 
Overrides: Shape.tuple_iter