- def rotate_degrees(self, degrees):
- self._start.rotate_degrees(degrees)
- self._end.rotate_degrees(degrees)
+ def _set_bounding_radius(self, bounding_radius):
+ if bounding_radius is None:
+ bounding_radius = self._max_radius
+ self._bounding_radius = bounding_radius
+
+ def rotatable(self):
+ return self._direction is not None
+
+ @property
+ def direction(self):
+ if self._direction is None:
+ return 0
+ return self._direction.angle_degrees
+
+ @direction.setter
+ def direction(self, degrees):
+ spread = self._direction.get_angle_between(self._start)
+ self._direction.angle_degrees = degrees
+ self._start = self._direction.rotated(spread)
+ self._end = self._direction.rotated(-spread)