mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-24 07:55:35 +08:00
committed by
Mathew Sutcliffe
parent
229d7c6068
commit
978f3c88e5
@@ -11,43 +11,43 @@ using namespace BlackMisc::PhysicalQuantities;
|
||||
namespace BlackMiscTest
|
||||
{
|
||||
|
||||
/*
|
||||
* Samples
|
||||
*/
|
||||
int CSamplesGeo::samples()
|
||||
{
|
||||
CLatitude lat1(20.0, CAngleUnit::deg());
|
||||
CLatitude lat2 = lat1;
|
||||
CLatitude lat3 = lat1 - lat2;
|
||||
/*
|
||||
* 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);
|
||||
qDebug() << lat1 << lat2 << lat3;
|
||||
qDebug() << (lat1 + lat2) << (lat1 - lat2);
|
||||
|
||||
lat3 += lat1;
|
||||
CLongitude lon1(33.0, CAngleUnit::deg());
|
||||
qDebug() << lon1 << lat3;
|
||||
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
|
||||
|
||||
CCoordinateGeodetic cg(10.0, 20.0, 1000);
|
||||
CCoordinateEcef ce = CCoordinateTransformation::toEcef(cg);
|
||||
CCoordinateGeodetic cg2 = CCoordinateTransformation::toGeodetic(ce);
|
||||
cg2.switchUnit(CAngleUnit::deg());
|
||||
qDebug() << cg << ce << cg2;
|
||||
CCoordinateGeodetic cg(10.0, 20.0, 1000);
|
||||
CCoordinateEcef ce = CCoordinateTransformation::toEcef(cg);
|
||||
CCoordinateGeodetic cg2 = CCoordinateTransformation::toGeodetic(ce);
|
||||
cg2.switchUnit(CAngleUnit::deg());
|
||||
qDebug() << cg << ce << cg2;
|
||||
|
||||
CCoordinateNed cned = CCoordinateTransformation::toNed(ce, cg);
|
||||
CCoordinateEcef ce2 = CCoordinateTransformation::toEcef(cned);
|
||||
qDebug() << ce << cned << ce2;
|
||||
qDebug() << (cned + cned) << (ce + ce);
|
||||
CCoordinateNed cned = CCoordinateTransformation::toNed(ce, cg);
|
||||
CCoordinateEcef ce2 = CCoordinateTransformation::toEcef(cned);
|
||||
qDebug() << ce << cned << ce2;
|
||||
qDebug() << (cned + cned) << (ce + ce);
|
||||
|
||||
// cned += ce2; // must not work
|
||||
|
||||
// bye
|
||||
qDebug() << "-----------------------------------------------";
|
||||
return 0;
|
||||
// bye
|
||||
qDebug() << "-----------------------------------------------";
|
||||
return 0;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user