Engine
|
Implementation of Symplectic Euler method for solving Newton's equations of motion. More...
#include <symplectic_euler.h>
Public Member Functions | |
SymplecticEuler () | |
SymplecticEuler (GLfloat dt) | |
Public Member Functions inherited from TimeIntegrator | |
void | StepForward (const NetForceAccumulator &net_force_accumulator, const std::vector< std::shared_ptr< PhysicsEntity >> &entity_ptrs, const std::shared_ptr< PhysicsEntity > entity_ptr) |
GLfloat | GetStepSize () |
Additional Inherited Members | |
Protected Attributes inherited from TimeIntegrator | |
GLfloat | m_dt |
Implementation of Symplectic Euler method for solving Newton's equations of motion.
SymplecticEuler::SymplecticEuler | ( | ) |
Constructs an instance of SymplecticEuler with a default grid size
SymplecticEuler::SymplecticEuler | ( | GLfloat | dt | ) |
Constructs an instance of SymplecticEuler with the provided grid size
dt | difference between two points on the grid |