def drawRobot(self, canvas):
    angle = self.v.get_angle()
    perpSide = Vec2D(Robot.ROBOT_WIDTH, 0)
    perpSide = perpSide.set_angle((angle - 90))
    paraSide = Vec2D(Robot.ROBOT_HEIGHT, 0)
    paraSide = paraSide.set_angle(angle)
    (x0, y0) = (round((self.pos - (perpSide * 0.5)).x), round((self.pos - (perpSide * 0.5)).y))
    (x1, y1) = (round((self.pos + (perpSide * 0.5)).x), round((self.pos + (perpSide * 0.5)).y))
    canvas.create_line((x0 + (self.canvaswidth / 2)), y0, (x1 + (self.canvaswidth / 2)), y1, width=Robot.ROBOT_EDGE, fill=self.color)
    x2 = (x0 + round(paraSide.x))
    y2 = (y0 + round(paraSide.y))
    canvas.create_line((x0 + (self.canvaswidth / 2)), y0, (x2 + (self.canvaswidth / 2)), y2, width=Robot.ROBOT_EDGE, fill=self.color)
    x3 = (x1 + round(paraSide.x))
    y3 = (y1 + round(paraSide.y))
    canvas.create_line((x1 + (self.canvaswidth / 2)), y1, (x3 + (self.canvaswidth / 2)), y3, width=Robot.ROBOT_EDGE, fill=self.color)
    canvas.create_line((x2 + (self.canvaswidth / 2)), y2, (x3 + (self.canvaswidth / 2)), y3, width=Robot.ROBOT_EDGE, fill=self.color)
def drawRobot(self, canvas):
    angle = self.v.get_angle()
    perpSide = Vec2D(Robot.ROBOT_WIDTH, 0)
    perpSide = perpSide.set_angle((angle - 90))
    paraSide = Vec2D(Robot.ROBOT_HEIGHT, 0)
    paraSide = paraSide.set_angle(angle)
    (x0, y0) = (round((self.pos - (perpSide * 0.5)).x), round((self.pos - (perpSide * 0.5)).y))
    (x1, y1) = (round((self.pos + (perpSide * 0.5)).x), round((self.pos + (perpSide * 0.5)).y))
    canvas.create_line((x0 + (self.canvaswidth / 2)), y0, (x1 + (self.canvaswidth / 2)), y1, width=Robot.ROBOT_EDGE, fill=self.color)
    x2 = (x0 + round(paraSide.x))
    y2 = (y0 + round(paraSide.y))
    canvas.create_line((x0 + (self.canvaswidth / 2)), y0, (x2 + (self.canvaswidth / 2)), y2, width=Robot.ROBOT_EDGE, fill=self.color)
    x3 = (x1 + round(paraSide.x))
    y3 = (y1 + round(paraSide.y))
    canvas.create_line((x1 + (self.canvaswidth / 2)), y1, (x3 + (self.canvaswidth / 2)), y3, width=Robot.ROBOT_EDGE, fill=self.color)
    canvas.create_line((x2 + (self.canvaswidth / 2)), y2, (x3 + (self.canvaswidth / 2)), y3, width=Robot.ROBOT_EDGE, fill=self.color)