def debug_line_out(self, p0: Union[Unit, Point2, Point3], p1: Union[Unit, Point2, Point3], color=None): """ Draws a line from p0 to p1. Don't forget to add 'await self._client.send_debug'. """ self._debug_lines.append( debug_pb.DebugLine( line=debug_pb.Line(p0=self.to_debug_point(p0), p1=self.to_debug_point(p1)), color=self.to_debug_color(color), ) )
def debug_line_out(self, p0: Union[Unit, Point2, Point3], p1: Union[Unit, Point2, Point3], color=None): """ Draws a line from p0 to p1. """ self._debug_lines.append( debug_pb.DebugLine( line=debug_pb.Line(p0=self.to_debug_point(p0), p1=self.to_debug_point(p1)), color=self.to_debug_color(color), ))
def to_proto(self): return debug_pb.DebugLine( line=debug_pb.Line(p0=self.to_debug_point(self._start_point), p1=self.to_debug_point(self._end_point)), color=self.to_debug_color(self._color), )