mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-07 10:05:51 +08:00
Initial refactoring of vector and matrix classes
This commit is contained in:
38
samples/blackmiscvectorgeo/samplesgeo.cpp
Normal file
38
samples/blackmiscvectorgeo/samplesgeo.cpp
Normal file
@@ -0,0 +1,38 @@
|
||||
#include "samplesgeo.h"
|
||||
|
||||
using namespace BlackMisc::Geo;
|
||||
using namespace BlackMisc::PhysicalQuantities;
|
||||
|
||||
namespace BlackMiscTest
|
||||
{
|
||||
|
||||
/*
|
||||
* Samples
|
||||
*/
|
||||
int CSamplesGeo::samples()
|
||||
{
|
||||
CGeoLatitude lat1(20.0, CAngleUnit::deg());
|
||||
CGeoLatitude lat2 = lat1;
|
||||
CGeoLatitude lat3 = lat1 - lat2;
|
||||
|
||||
qDebug() << lat1 << lat2 << lat3;
|
||||
qDebug() << (lat1 + lat2) << (lat1 - lat2);
|
||||
|
||||
lat3 += lat1;
|
||||
CGeoLongitude lon1(33.0, CAngleUnit::deg());
|
||||
qDebug() << lon1 << lat3;
|
||||
|
||||
// lat3 += lon1; // must not work
|
||||
// lat3 = lon1; //must not work
|
||||
// CGeoLongitude lonx(lat2); // must notwork
|
||||
|
||||
CCoordinateGeodetic gc(10.0, 20.0, 1000);
|
||||
qDebug() << gc;
|
||||
|
||||
// bye
|
||||
qDebug() << "-----------------------------------------------";
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
} // namespace
|
||||
Reference in New Issue
Block a user