|
| 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 338 of file kis_liquify_transform_worker.cpp.
342 {
343 Q_UNUSED(pt);
344
345 const qreal angle =
m_angle * lambda;
346 const qreal sinA = std::sin(angle);
347 const qreal cosA = std::cos(angle);
348
349 qreal
x = cosA * diff.x() + sinA * diff.y();
350 qreal
y = -sinA * diff.x() + cosA * diff.y();
351
352 return base + QPointF(x, y);
353 }
References m_angle.
◆ m_angle
◆ maxDistCoeff
| const qreal RotateOp::maxDistCoeff = 3.0 |
|
static |
The documentation for this struct was generated from the following file: