feature/test #9

Merged
njohnson merged 318 commits from feature/test into main 2025-09-07 12:35:21 -04:00
2 changed files with 50 additions and 0 deletions
Showing only changes of commit 3a718acb50 - Show all commits

View File

@ -0,0 +1,27 @@
#include "xphysmass.h"
XPhysMass::XPhysMass()
: XAsset()
, mCenterOfMass()
, mMomentsOfInertia()
, mProductsOfInertia()
{
}
XPhysMass::~XPhysMass()
{
}
void XPhysMass::ParseData(QDataStream *aStream)
{
}
void XPhysMass::Clear()
{
mCenterOfMass = QVector3D();
mMomentsOfInertia = QVector3D();
mProductsOfInertia = QVector3D();
}

23
libs/xassets/xphysmass.h Normal file
View File

@ -0,0 +1,23 @@
#ifndef XPHYSMASS_H
#define XPHYSMASS_H
#include "xasset.h"
#include <QVector3D>
class XPhysMass : public XAsset
{
public:
XPhysMass();
~XPhysMass();
virtual void ParseData(QDataStream* aStream) override;
virtual void Clear() override;
private:
QVector3D mCenterOfMass;
QVector3D mMomentsOfInertia;
QVector3D mProductsOfInertia;
};
#endif // XPHYSMASS_H