Engine
BackwardEuler Class Reference

Implementation of Backward Euler method for solving Newton's Laws. More...

#include <backward_euler.h>

Inheritance diagram for BackwardEuler:
TimeIntegrator

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
 

Detailed Description

Implementation of Backward Euler method for solving Newton's Laws.

Constructor & Destructor Documentation

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

Parameters
dttime step
thresholdif successive iterations are less than m_thresold in norm apart then halt
max_itermaximum number of iterations to run

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