Motive Animation System
An open source project by FPL.
 All Classes Functions Variables Typedefs Friends Pages
motive::Settled1f Class Reference

Helper to determine if we're "at the target" and "stopped". More...

#include <util.h>

Detailed Description

Helper to determine if we're "at the target" and "stopped".

Public Member Functions

bool Settled (float dist, float velocity) const
 
template<class Motivator >
bool Settled (const Motivator &motivator) const
 Return true if motivator is "at the target" and "stopped".
 
template<>
bool Settled (const Motivator1f &motivator) const
 

Public Attributes

float max_difference
 
float max_velocity
 Consider ourselves "stopped" if the absolute velocity is less than this.
 

Member Function Documentation

bool motive::Settled1f::Settled ( float  dist,
float  velocity 
) const
inline

Return true if our distance from target is and velocity are less than this class' threshold.

Member Data Documentation

float motive::Settled1f::max_difference

Consider ourselves "at the target" if the absolute difference between the value and the target is less than this.


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