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