28 double angleOld)
const
31 double angleNew = angleOld;
32 for (
int delta = -360; delta <= 360; delta += 360) {
33 double angleNext = angleOld + qDegreesToRadians ((
double) delta);
34 if (isFirst || (qAbs (angleNext - angleCenter) < qAbs (angleNew - angleCenter))) {
45 return m_modelGuideline;
50 return m_posClickScreen;
55 return m_transformation;
QPointF posClickScreen() const
Center of circle in screen coordinates.
double closestAngleToCentralAngle(double angleCenter, double angleOld) const
Loop to find closest angle to angleCenter.
CentipedeSegmentAbstract(const DocumentModelGuideline &modelGuideline, const Transformation &transformation, const QPointF &posClickScreen)
Constructor with individual coordinates.
virtual ~CentipedeSegmentAbstract()
const DocumentModelGuideline & modelGuideline() const
Settings.
Transformation transformation() const
Transformation which is static through the entire lifetime of the Centipede class instances.
Model for managing the coordinate values corresponding Guidelines.