[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:
committed by
Minh Nguyễn
parent
6748b6155e
commit
8b76f00d8c
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user