File indexing completed on 2024-05-12 03:50:08

0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2010 Dennis Nienhüser <nienhueser@kde.org>
0004 //
0005 
0006 #include "GeoDataAccuracy.h"
0007 
0008 namespace Marble {
0009 
0010 GeoDataAccuracy::GeoDataAccuracy( Level level, qreal horizontal, qreal _vertical )
0011     : level( level ),
0012       horizontal( horizontal ),
0013       vertical( _vertical )
0014 {
0015        // nothing to do
0016 }
0017 
0018 bool GeoDataAccuracy::operator==( const GeoDataAccuracy &other ) const
0019 {
0020     return ( level == other.level ) && ( horizontal == other.horizontal ) && ( vertical == other.vertical );
0021 }
0022 
0023 bool GeoDataAccuracy::operator!=( const GeoDataAccuracy &other ) const
0024 {
0025     return !this->operator==(other);
0026 }
0027 
0028 }