Exemple #1
0
 def get_bbox(self):
     if self.horizontal:
         return bbox.bbox_mk(self.position,
                             self.position,
                             offset=(self.radius, self.size / 2))
     else:
         return bbox.bbox_mk(self.position,
                             self.position,
                             offset=(self.size / 2, self.radius))
Exemple #2
0
    def get_bbox(self):
        new_bbox = bbox.bbox_mk(self.points[0],
                                self.points[1],
                                offset=(self.width, self.width))
        for point in self.points:
            new_bbox = bbox.bbox_add_point(new_bbox,
                                           point,
                                           offset=(self.width, self.width))

        return new_bbox
Exemple #3
0
 def get_bbox(self):
     return bbox.bbox_mk(self.lower_left, self.upper_right)
Exemple #4
0
 def get_bbox(self):
     return bbox.bbox_mk(self.start,
                         self.end,
                         offset=(self.width, self.width))
Exemple #5
0
 def get_bbox(self):
     return bbox.bbox_mk(self.center,
                         self.center,
                         offset=(self.radius, self.radius))