C++ (Qt)QPainterPath::moveTo(pA)
C++ (Qt)QRect rect = (c.x - r, c.y - r, 2*r, 2*r);QLineF lineAC(a, c);QLineF lineBC(b, c);QLineF lineOrdinateX(c, QPoinF(-c.x, c.y));qreal startAngle = lineAC.angleTo(lineOrdinateX);qreal spanAngle = lineAC.angleTo(lineBC);
C++ (Qt)void QGraphicsItem::paint ( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0 ) [pure virtual]
C++ (Qt)while(!asleep()) sheep++;
offset = 90*16 startangle = 16*atan2(a.y() - c.y(), a.x() - c.x())*180 / pi endangle = 16*atan2(b.y() - c.y(), b.x() - c.x())*180 / pi if startangle < 0: startangle -= offset else: startangle += offset if endangle < 0: endangle -= offset else: endangle += offset spanangle = abs(endangle) - abs(startangle) # По часовой if self.direction == -1: if spanangle > 0: spanangle = -spanangle angles = {'start': startangle, 'end': endangle, 'span': spanangle} print(angles['start'] / 16, angles['end'] / 16, angles['span'] / 16)