refs #484 Revise CCoordinateGeodetic implementation to use n-vectors.

This commit is contained in:
Mathew Sutcliffe
2015-10-19 23:24:33 +01:00
parent 7483195b47
commit bc9ff9f6b2
7 changed files with 139 additions and 75 deletions

View File

@@ -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); }