Engine
MidpointMethod Class Reference

Implementation of Midpoint method for solving Newton's Laws. More...

#include <midpoint_method.h>

Inheritance diagram for MidpointMethod:
TimeIntegrator

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
 

Detailed Description

Implementation of Midpoint method for solving Newton's Laws.

Constructor & Destructor Documentation

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

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

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