|
Engine
|
Implementation of Backward Euler method for solving Newton's Laws. More...
#include <backward_euler.h>
Public Member Functions | |
| BackwardEuler () | |
| BackwardEuler (GLfloat dt, GLfloat threshold, GLuint max_iter) | |
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 Backward Euler method for solving Newton's Laws.
| BackwardEuler::BackwardEuler | ( | ) |
Constructs a BackwardEuler with the default timestep
| BackwardEuler::BackwardEuler | ( | GLfloat | dt, |
| GLfloat | threshold, | ||
| GLuint | max_iter | ||
| ) |
Constructs a BackwardEuler with the provided timestep
| dt | time step |
| threshold | if successive iterations are less than m_thresold in norm apart then halt |
| max_iter | maximum number of iterations to run |