32 lines
1.1 KiB
C++
32 lines
1.1 KiB
C++
/***************************************************************************
|
|
* Copyright (c) 2023 Ondsel, Inc. *
|
|
* *
|
|
* This file is part of OndselSolver. *
|
|
* *
|
|
* See LICENSE file for details about copyright. *
|
|
***************************************************************************/
|
|
|
|
#pragma once
|
|
|
|
#include "ASMTSpatialItem.h"
|
|
|
|
namespace MbD {
|
|
class ASMTPrincipalMassMarker : public ASMTSpatialItem
|
|
{
|
|
//
|
|
public:
|
|
void parseASMT(std::vector<std::string>& lines) override;
|
|
void setMass(double mass);
|
|
void setDensity(double density);
|
|
void setMomentOfInertias(DiagMatDsptr momentOfInertias);
|
|
|
|
// Overloads to simplify syntax.
|
|
void setMomentOfInertias(double a, double b, double c);
|
|
|
|
double mass, density;
|
|
DiagMatDsptr momentOfInertias;
|
|
|
|
};
|
|
}
|
|
|