mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
/* Copyright (C) 2013 VATSIM Community / contributors
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#include "samplesgeo.h"
|
|
#include "blackmisc/geo/latitude.h"
|
|
#include "blackmisc/geo/longitude.h"
|
|
|
|
using namespace BlackMisc::Geo;
|
|
using namespace BlackMisc::PhysicalQuantities;
|
|
|
|
namespace BlackMiscTest
|
|
{
|
|
|
|
/*
|
|
* Samples
|
|
*/
|
|
int CSamplesGeo::samples()
|
|
{
|
|
CLatitude lat1(20.0, CAngleUnit::deg());
|
|
CLatitude lat2 = lat1;
|
|
CLatitude lat3 = lat1 - lat2;
|
|
|
|
qDebug() << lat1 << lat2 << lat3;
|
|
qDebug() << (lat1 + lat2) << (lat1 - lat2);
|
|
|
|
lat3 += lat1;
|
|
CLongitude lon1(33.0, CAngleUnit::deg());
|
|
qDebug() << lon1 << lat3;
|
|
|
|
// lat3 += lon1; // must not work
|
|
// lat3 = lon1; //must not work
|
|
// CGeoLongitude lonx(lat2); // must notwork
|
|
|
|
// bye
|
|
qDebug() << "-----------------------------------------------";
|
|
return 0;
|
|
|
|
}
|
|
|
|
} // namespace
|