Beispiel #1
0
 def __init__(
         self,
         center,
         inner_width,
         outer_width,
         inner_height,
         outer_height,
         angle=0 * u.deg,
         meta=None,
         visual=None,
 ):
     self.center = center
     self.inner_width = inner_width
     self.outer_width = outer_width
     self.inner_height = inner_height
     self.outer_height = outer_height
     self.angle = angle
     self.meta = meta or RegionMeta()
     self.visual = visual or RegionVisual()
     self._repr_params = (
         "inner_width",
         "inner_height",
         "outer_width",
         "outer_height",
         "angle",
     )
Beispiel #2
0
 def __init__(self, center, inner_radius, outer_radius, meta=None, visual=None):
     self.center = center
     self.inner_radius = inner_radius
     self.outer_radius = outer_radius
     self.meta = meta or RegionMeta()
     self.visual = visual or RegionVisual()
     self._repr_params = ("inner_radius", "outer_radius")