mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 11:25:33 +08:00
Initial commit
This commit is contained in:
42
blacklib/include/blackcore/ecef.h
Normal file
42
blacklib/include/blackcore/ecef.h
Normal file
@@ -0,0 +1,42 @@
|
||||
//! Copyright (C) 2013 Roland Winklmeier
|
||||
//! 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/
|
||||
|
||||
#ifndef ECEF_H
|
||||
#define ECEF_H
|
||||
|
||||
#include "vector_3d.h"
|
||||
|
||||
namespace BlackCore
|
||||
{
|
||||
|
||||
class CNed;
|
||||
class CVectorGeo;
|
||||
|
||||
class CEcef : public CVector3D
|
||||
{
|
||||
public:
|
||||
CEcef();
|
||||
CEcef(double X, double Y, double Z);
|
||||
|
||||
//! Converts this velocity vector into the NED format
|
||||
/*!
|
||||
\param pos This position is needed for correct calculation
|
||||
\return velocity in NED coordinate system
|
||||
*/
|
||||
CNed toNED(const CVectorGeo &pos);
|
||||
|
||||
//! Converts this position vector into the geodetic format
|
||||
/*!
|
||||
\return Position in latitude, longitude and altitude
|
||||
*/
|
||||
CVectorGeo toGeodetic();
|
||||
|
||||
//! Assignment operator
|
||||
void operator= (const CVector3D &rhs);
|
||||
};
|
||||
|
||||
} // namespace BlackCore
|
||||
|
||||
#endif // ECEF_H
|
||||
Reference in New Issue
Block a user