| 34 | } |
| 35 | |
| 36 | void ComplexTransformable::setRotation(float angle) |
| 37 | { |
| 38 | m_rotation = static_cast<float>(fmod(angle, 360)); |
| 39 | if (m_rotation < 0) |
| 40 | m_rotation += 360.f; |
| 41 | |
| 42 | m_transformNeedUpdate = true; |
| 43 | m_inverseTransformNeedUpdate = true; |
| 44 | } |
| 45 | |
| 46 | void ComplexTransformable::setScale(float factorX, float factorY) |
| 47 | { |