TalanSoft Toolkits  201707
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Public Attributes | List of all members
sDampedSpring< T, TF, BASE, TREF > Struct Template Reference
Inheritance diagram for sDampedSpring< T, TF, BASE, TREF >:
sDampedSpringPosition< T, TF, BASE, TREF >

Detailed Description

template<typename T, typename TF, typename BASE = ni::cUnknown, typename TREF = const T&>
struct ni::sDampedSpring< T, TF, BASE, TREF >

Damped spring helper template.

Public Member Functions

 sDampedSpring ()
 
void SetKd (TF aKd)
 
TF GetKd () const
 
void SetKs (TF aKs)
 
TF GetKs () const
 
void SetStiffnessAndDampingRatio (ni::tF32 aKs, ni::tF32 E)
 
void SetDampingRatio (ni::tF32 E)
 
TF GetDampingRatio () const
 
void SetVelocity (TREF avVel)
 
GetVelocity () const
 
ComputeAcceleration (TREF avD)
 
void UpdateVelocity (ni::tF32 afDeltaTime, TREF avD)
 
void UpdateVelocityWithAcceleration (ni::tF32 afDeltaTime, TREF avAcc)
 

Public Attributes

mvVel
 
TF mKs
 
TF mKd
 

Constructor & Destructor Documentation

Member Function Documentation

void SetKd ( TF  aKd)
TF GetKd ( ) const
void SetKs ( TF  aKs)
TF GetKs ( ) const
void SetStiffnessAndDampingRatio ( ni::tF32  aKs,
ni::tF32  E 
)
void SetDampingRatio ( ni::tF32  E)
TF GetDampingRatio ( ) const
void SetVelocity ( TREF  avVel)
T GetVelocity ( ) const
T ComputeAcceleration ( TREF  avD)
void UpdateVelocity ( ni::tF32  afDeltaTime,
TREF  avD 
)
void UpdateVelocityWithAcceleration ( ni::tF32  afDeltaTime,
TREF  avAcc 
)

Member Data Documentation

T mvVel
TF mKs
TF mKd