| 39 | } |
| 40 | |
| 41 | void Transformation::transformBox(Corners& corners) const |
| 42 | { |
| 43 | // TODO We could create a composed 4x4 matrix with all |
| 44 | // transformation and apply the same matrix to avoid calling |
| 45 | // rotatePoint/cos/sin functions 4 times, anyway, it's not |
| 46 | // critical at this point. |
| 47 | |
| 48 | corners = m_bounds; |
| 49 | for (std::size_t c=0; c<corners.size(); ++c) |
| 50 | corners[c] = Transformation::rotatePoint(corners[c], m_pivot, m_angle); |
| 51 | } |
| 52 | |
| 53 | void Transformation::displacePivotTo(const PointF& newPivot) |
| 54 | { |
no test coverage detected