[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user