#include <GteMassSpringArbitrary.h>

Classes | |
| struct | Spring |
Public Member Functions | |
| virtual Vector< N, Real > | ExternalAcceleration (int i, Real time, std::vector< Vector< N, Real >> const &position, std::vector< Vector< N, Real >> const &velocity) |
| int | GetNumSprings () const |
| Spring const & | GetSpring (int index) const |
| MassSpringArbitrary (int numParticles, int numSprings, Real step) | |
| void | SetSpring (int index, Spring const &spring) |
| virtual | ~MassSpringArbitrary () |
Public Member Functions inherited from gte::ParticleSystem< N, Real > | |
| Real const & | GetMass (int i) const |
| int | GetNumParticles () const |
| Vector< N, Real > const & | GetPosition (int i) const |
| Real | GetStep () const |
| Vector< N, Real > const & | GetVelocity (int i) const |
| ParticleSystem (int numParticles, Real step) | |
| void | SetMass (int i, Real mass) |
| void | SetPosition (int i, Vector< N, Real > const &position) |
| void | SetStep (Real step) |
| void | SetVelocity (int i, Vector< N, Real > const &velocity) |
| virtual void | Update (Real time) |
| virtual | ~ParticleSystem () |
Protected Member Functions | |
| virtual Vector< N, Real > | Acceleration (int i, Real time, std::vector< Vector< N, Real >> const &position, std::vector< Vector< N, Real >> const &velocity) |
Protected Attributes | |
| std::vector< std::set< int > > | mAdjacent |
| std::vector< Spring > | mSpring |
Protected Attributes inherited from gte::ParticleSystem< N, Real > | |
| Real | mHalfStep |
| std::vector< Real > | mInvMass |
| std::vector< Real > | mMass |
| int | mNumParticles |
| std::vector< Temporary > | mPAllTmp |
| std::vector< Vector< N, Real > > | mPosition |
| std::vector< Vector< N, Real > > | mPTmp |
| Real | mSixthStep |
| Real | mStep |
| std::vector< Temporary > | mVAllTmp |
| std::vector< Vector< N, Real > > | mVelocity |
| std::vector< Vector< N, Real > > | mVTmp |
Definition at line 18 of file GteMassSpringArbitrary.h.
|
virtual |
Definition at line 66 of file GteMassSpringArbitrary.h.
| gte::MassSpringArbitrary< N, Real >::MassSpringArbitrary | ( | int | numParticles, |
| int | numSprings, | ||
| Real | step | ||
| ) |
Definition at line 71 of file GteMassSpringArbitrary.h.
|
protectedvirtual |
Implements gte::ParticleSystem< N, Real >.
Definition at line 110 of file GteMassSpringArbitrary.h.
|
virtual |
Definition at line 103 of file GteMassSpringArbitrary.h.
|
inline |
Definition at line 82 of file GteMassSpringArbitrary.h.
|
inline |
Definition at line 97 of file GteMassSpringArbitrary.h.
| void gte::MassSpringArbitrary< N, Real >::SetSpring | ( | int | index, |
| Spring const & | spring | ||
| ) |
Definition at line 88 of file GteMassSpringArbitrary.h.
|
protected |
Definition at line 61 of file GteMassSpringArbitrary.h.
|
protected |
Definition at line 56 of file GteMassSpringArbitrary.h.