add setAngle() call with duration

This commit is contained in:
Konstantin Käfer
2014-05-02 10:28:47 +02:00
parent 485a9a40bc
commit 6574f0d188
2 changed files with 7 additions and 1 deletions

View File

@@ -278,6 +278,11 @@ void Map::rotateBy(double sx, double sy, double ex, double ey, double duration)
update();
}
void Map::setAngle(double angle, double duration) {
transform.setAngle(angle, duration * 1_second);
update();
}
void Map::setAngle(double angle, double cx, double cy) {
transform.setAngle(angle, cx, cy);
update();