[core] allow changing the orientation

You can now change the orientation of north to be to the right, bottom, left in addition to the default of top
This commit is contained in:
Konstantin Käfer
2015-11-16 16:32:09 +01:00
parent 62412af6ab
commit 4fc8226838
12 changed files with 136 additions and 7 deletions

View File

@@ -498,6 +498,17 @@ double Transform::getPitch() const {
return state.pitch;
}
#pragma mark - North Orientation
void Transform::setNorthOrientation(NorthOrientation orientation) {
state.orientation = orientation;
state.constrain(state.scale, state.x, state.y);
}
NorthOrientation Transform::getNorthOrientation() const {
return state.getNorthOrientation();
}
#pragma mark - Transition
void Transform::startTransition(std::function<double(double)> easing,