[core] Added {set,get}{Min,Max}Pitch

This commit is contained in:
Bruno de Oliveira Abinader
2017-04-03 18:37:03 +03:00
parent c1c6c1e298
commit c4fc89977b
7 changed files with 83 additions and 2 deletions

View File

@@ -176,6 +176,25 @@ double TransformState::getMaxZoom() const {
return scaleZoom(max_scale);
}
void TransformState::setMinPitch(double minPitch) {
if (minPitch <= getMaxPitch()) {
min_pitch = minPitch;
}
}
double TransformState::getMinPitch() const {
return min_pitch;
}
void TransformState::setMaxPitch(double maxPitch) {
if (maxPitch >= getMinPitch()) {
max_pitch = maxPitch;
}
}
double TransformState::getMaxPitch() const {
return max_pitch;
}
#pragma mark - Rotation