Pyrogenesis  trunk
Public Member Functions | Public Attributes | Private Attributes | List of all members
CSmoothedValue Class Reference

A value with exponential decay towards the target value. More...

Public Member Functions

 CSmoothedValue (float value, float smoothness, float minDelta)
 
float GetSmoothedValue ()
 
void SetValueSmoothly (float value)
 
void AddSmoothly (float value)
 
void Add (float value)
 
float GetValue ()
 
void SetValue (float value)
 
float Update (float time)
 
void ClampSmoothly (float min, float max)
 
void Wrap (float min, float max)
 

Public Attributes

float m_Smoothness
 

Private Attributes

double m_Target
 
double m_Current
 
float m_MinDelta
 

Detailed Description

A value with exponential decay towards the target value.

Constructor & Destructor Documentation

CSmoothedValue::CSmoothedValue ( float  value,
float  smoothness,
float  minDelta 
)
inline

Member Function Documentation

void CSmoothedValue::Add ( float  value)
inline
void CSmoothedValue::AddSmoothly ( float  value)
inline
void CSmoothedValue::ClampSmoothly ( float  min,
float  max 
)
inline
float CSmoothedValue::GetSmoothedValue ( )
inline
float CSmoothedValue::GetValue ( )
inline
void CSmoothedValue::SetValue ( float  value)
inline
void CSmoothedValue::SetValueSmoothly ( float  value)
inline
float CSmoothedValue::Update ( float  time)
inline
void CSmoothedValue::Wrap ( float  min,
float  max 
)
inline

Member Data Documentation

double CSmoothedValue::m_Current
private
float CSmoothedValue::m_MinDelta
private
float CSmoothedValue::m_Smoothness
double CSmoothedValue::m_Target
private

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