|
| QPointF | operator() (const QPointF &pt, const QPointF &base, const QPointF &diff, qreal lambda) |
| |
| | RotateOp (qreal angle) |
| |
◆ RotateOp()
| RotateOp::RotateOp |
( |
qreal | angle | ) |
|
|
inline |
◆ operator()()
| QPointF RotateOp::operator() |
( |
const QPointF & | pt, |
|
|
const QPointF & | base, |
|
|
const QPointF & | diff, |
|
|
qreal | lambda ) |
|
inline |
Definition at line 547 of file kis_liquify_transform_worker.cpp.
551 {
552 Q_UNUSED(pt);
553
554 const qreal angle =
m_angle * lambda;
555 const qreal sinA = std::sin(angle);
556 const qreal cosA = std::cos(angle);
557
558 qreal
x = cosA * diff.x() + sinA * diff.y();
559 qreal
y = -sinA * diff.x() + cosA * diff.y();
560
561 return base + QPointF(x, y);
562 }
References m_angle.
◆ m_angle
◆ maxDistCoeff
| const qreal RotateOp::maxDistCoeff = 3.0 |
|
static |
The documentation for this struct was generated from the following file: