This reverts commit 6280d9fb0184275843a8f4406c7293e41e65a639, reversing changes made to 3c9c8b8c6a2b2e7430ff09efdc2cc0c1996b16ca.
22 lines
409 B
C++
22 lines
409 B
C++
#ifndef SIM_GRAVITYMODEL_H
|
|
#define SIM_GRAVITYMODEL_H
|
|
|
|
// qtrocket headers
|
|
#include "utils/math/MathTypes.h"
|
|
|
|
namespace sim
|
|
{
|
|
|
|
class GravityModel
|
|
{
|
|
public:
|
|
GravityModel() {}
|
|
virtual ~GravityModel() {}
|
|
|
|
virtual Vector3 getAccel(double x, double y, double z) = 0;
|
|
Vector3 getAccel(const Vector3& t) { return this->getAccel(t.x(), t.y(), t.z()); }
|
|
};
|
|
|
|
} // namespace sim
|
|
#endif // SIM_GRAVITYMODEL_H
|