[core] PrecisionPoint is now a vec2<double>

We could reuse all the operators defined in vec2<>, including operator
bool() that checks if the contained values are !NaN.
This commit is contained in:
Bruno de Oliveira Abinader
2015-11-12 17:19:34 +02:00
committed by Minh Nguyễn
parent 6748b6155e
commit 8b76f00d8c
7 changed files with 41 additions and 43 deletions

View File

@@ -315,8 +315,8 @@ double Map::getBearing() const {
return -transform->getAngle() / M_PI * 180;
}
void Map::resetNorth() {
transform->setAngle(0, std::chrono::milliseconds(500));
void Map::resetNorth(const Duration& duration) {
transform->setAngle(0, duration);
update(Update::Repaint);
}