def capSquare(self, firstContour, lastContour, first, last, angle):
        angle = radians(degrees(angle)+90)

        firstContour[-1].smooth = True
        lastContour[0].smooth = True

        p1 = first - self.pointClass(cos(angle), sin(angle)) * self.offset
        firstContour.addPoint((p1.x, p1.y), smooth=False, segmentType="line")

        p2 = self.pointClass(cos(angle), sin(angle)) * self.offset - last
        firstContour.addPoint((p2.x, p2.y), smooth=False, segmentType="line")
dataset/ETHPy150Open gferreira/hTools2/Lib/hTools2/extras/outline.py/OutlinePen.capSquare/swapped operands of `-`