mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Ref T275, utility functions in simulated aircraft, sim object ..
This commit is contained in:
@@ -29,6 +29,12 @@ namespace BlackMisc
|
||||
//! Init by double value
|
||||
CLength(double value, const CLengthUnit &unit) : CPhysicalQuantity(value, unit) {}
|
||||
|
||||
//! Init by double value and switch unit
|
||||
CLength(double value, const CLengthUnit &unit, const CLengthUnit &switchUnit) : CPhysicalQuantity(value, unit)
|
||||
{
|
||||
this->switchUnit(switchUnit);
|
||||
}
|
||||
|
||||
//! \copydoc CPhysicalQuantity(const QString &unitString)
|
||||
CLength(const QString &unitString) : CPhysicalQuantity(unitString) {}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user