mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 05:45:35 +08:00
Fixed valid distance in ATC station
This commit is contained in:
@@ -171,8 +171,8 @@ namespace BlackMisc
|
|||||||
//! Set distance to own plane
|
//! Set distance to own plane
|
||||||
void setDistanceToPlane(const BlackMisc::PhysicalQuantities::CLength &distance) { this->m_distanceToPlane = distance; }
|
void setDistanceToPlane(const BlackMisc::PhysicalQuantities::CLength &distance) { this->m_distanceToPlane = distance; }
|
||||||
|
|
||||||
//! \brief Valid distance?
|
//! Valid distance?
|
||||||
bool hasValidDistance() const { return !this->m_distanceToPlane.isNegativeWithEpsilonConsidered();}
|
bool hasValidDistance() const { return !this->m_distanceToPlane.isNull();}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Calculcate distance to plane, set it, and also return it
|
* \brief Calculcate distance to plane, set it, and also return it
|
||||||
|
|||||||
Reference in New Issue
Block a user