mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
refs #484 Revise CCoordinateGeodetic implementation to use n-vectors.
This commit is contained in:
@@ -318,12 +318,12 @@ namespace BlackMisc
|
||||
}
|
||||
}
|
||||
|
||||
const CLatitude &CAtcStation::latitude() const
|
||||
CLatitude CAtcStation::latitude() const
|
||||
{
|
||||
return this->getPosition().latitude();
|
||||
}
|
||||
|
||||
const CLongitude &CAtcStation::longitude() const
|
||||
CLongitude CAtcStation::longitude() const
|
||||
{
|
||||
return this->getPosition().longitude();
|
||||
}
|
||||
@@ -333,6 +333,11 @@ namespace BlackMisc
|
||||
return this->m_position.geodeticHeight();
|
||||
}
|
||||
|
||||
QVector3D CAtcStation::normalVector() const
|
||||
{
|
||||
return this->m_position.normalVector();
|
||||
}
|
||||
|
||||
CVariant CAtcStation::propertyByIndex(const BlackMisc::CPropertyIndex &index) const
|
||||
{
|
||||
if (index.isMyself()) { return CVariant::from(*this); }
|
||||
|
||||
Reference in New Issue
Block a user