1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-04 22:59:29 +02:00

Some more code cleanup

This commit is contained in:
2017-06-30 18:15:22 +02:00
parent e48729fc84
commit d106f47771
7 changed files with 13 additions and 48 deletions

View File

@ -1,28 +1,5 @@
#include "rectc.h"
RectC RectC::normalized() const
{
RectC r;
if (_br.lon() < _tl.lon()) {
r._tl.setLon(_br.lon());
r._br.setLon(_tl.lon());
} else {
r._tl.setLon(_tl.lon());
r._br.setLon(_br.lon());
}
if (_br.lat() < _tl.lat()) {
r._tl.setLat(_br.lat());
r._br.setLat(_tl.lat());
} else {
r._tl.setLat(_tl.lat());
r._br.setLat(_br.lat());
}
return r;
}
RectC RectC::operator|(const RectC &r) const
{
if (isNull())