- 3.0.2 core module.
Masspoint Class Reference

#include <Masspoint.h>

Inheritance diagram for Masspoint:
ct::core::System< 2 >

Public Member Functions

 Masspoint (double mass, double d)
 
 Masspoint (const Masspoint &other)
 
 ~Masspoint ()=default
 
Masspointclone () const override
 deep copy More...
 
void computeDynamics (const ct::core::StateVector< STATE_DIM > &x, const ct::core::Time &t, ct::core::StateVector< STATE_DIM > &derivative) override
 
- Public Member Functions inherited from ct::core::System< 2 >
 System (const SYSTEM_TYPE &type=SYSTEM_TYPE::GENERAL)
 default constructor More...
 
 System (const System &other)
 copy constructor More...
 
virtual ~System ()
 destructor More...
 
virtual void computeDynamics (const StateVector< STATE_DIM, double > &state, const time_t &t, StateVector< STATE_DIM, double > &derivative)=0
 computes the system dynamics More...
 
SYSTEM_TYPE getType () const
 get the type of system More...
 
virtual bool isSymplectic () const
 Determines if the system is in symplectic form. More...
 

Static Public Attributes

static EIGEN_MAKE_ALIGNED_OPERATOR_NEW const size_t STATE_DIM = 2
 

Additional Inherited Members

- Public Types inherited from ct::core::System< 2 >
typedef double time_t
 the type of the time variable More...
 
- Public Attributes inherited from ct::core::System< 2 >
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef double S
 the scalar type More...
 
- Protected Attributes inherited from ct::core::System< 2 >
SYSTEM_TYPE type_
 type of system More...
 

Detailed Description

Constructor & Destructor Documentation

◆ Masspoint() [1/2]

Masspoint::Masspoint ( double  mass,
double  d 
)
inline
Examples:
Masspoint.h.

Referenced by clone().

◆ Masspoint() [2/2]

Masspoint::Masspoint ( const Masspoint other)
inline

References ~Masspoint().

◆ ~Masspoint()

Masspoint::~Masspoint ( )
default
Examples:
Masspoint.h.

Referenced by Masspoint().

Member Function Documentation

◆ clone()

Masspoint* Masspoint::clone ( ) const
inlineoverridevirtual

deep copy

Reimplemented from ct::core::System< 2 >.

Examples:
Masspoint.h.

References Masspoint().

◆ computeDynamics()

void Masspoint::computeDynamics ( const ct::core::StateVector< STATE_DIM > &  x,
const ct::core::Time t,
ct::core::StateVector< STATE_DIM > &  derivative 
)
inlineoverride
Examples:
Masspoint.h.

Member Data Documentation

◆ STATE_DIM

EIGEN_MAKE_ALIGNED_OPERATOR_NEW const size_t Masspoint::STATE_DIM = 2
static
Examples:
Masspoint.h, and MasspointIntegration.cpp.

Referenced by main().


The documentation for this class was generated from the following file: