mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Initial version of physical quantities
This commit is contained in:
37
src/blackcore/pqmass.cpp
Normal file
37
src/blackcore/pqmass.cpp
Normal file
@@ -0,0 +1,37 @@
|
||||
#include "pqmass.h"
|
||||
|
||||
namespace BlackCore {
|
||||
|
||||
/**
|
||||
* Default Constructor
|
||||
*/
|
||||
CMass::CMass(): CPhysicalQuantity(0, CMassUnit::kg(),CMassUnit::kg())
|
||||
{
|
||||
//void
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
CMass::CMass(const CPhysicalQuantity &weight): CPhysicalQuantity(weight)
|
||||
{
|
||||
// void
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
CMass::CMass(qint32 value, const CMassUnit &unit) : CPhysicalQuantity(value, unit, CMassUnit::kg())
|
||||
{
|
||||
// void
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
CMass::CMass(double value, const CMassUnit &unit) : CPhysicalQuantity(value, unit, CMassUnit::kg())
|
||||
{
|
||||
// void
|
||||
}
|
||||
|
||||
} // namespace BlackCore
|
||||
Reference in New Issue
Block a user