PF_API 0.52
Public Types | Public Member Functions | Public Attributes

OpenSkyNet::Math::Interpolator Class Reference

#include <MInterpolator.h>

List of all members.

Public Types

enum  TYPE {
  BOUNCE_F, BOUNCE_B, LOOP, END,
  BOUNCE_F, BOUNCE_B, LOOP, END
}
enum  TYPE {
  BOUNCE_F, BOUNCE_B, LOOP, END,
  BOUNCE_F, BOUNCE_B, LOOP, END
}

Public Member Functions

 Interpolator ()
 Interpolator (TYPE type_)
bool operator+ (float amount_)
 operator float ()
 Interpolator ()
 Interpolator (TYPE type_)
bool operator+ (float amount_)
 operator float ()

Public Attributes

enum
OpenSkyNet::Math::Interpolator::TYPE 
_type
float _value

Detailed Description

Stores and updates an interpolated value between endpoints 0 and 1. Upon reaching an endpoint, different modes are available: 1) Interpolate back to the other endpoint (bounce), 2) Jump immediately to the other endpoint (loop), 3) Stop interpolating (end). Additive amounts large enough for several loops or bounces per update are permitted.


Member Enumeration Documentation

Enumerator:
BOUNCE_F 
BOUNCE_B 
LOOP 
END 
BOUNCE_F 
BOUNCE_B 
LOOP 
END 
Enumerator:
BOUNCE_F 
BOUNCE_B 
LOOP 
END 
BOUNCE_F 
BOUNCE_B 
LOOP 
END 

Constructor & Destructor Documentation

OpenSkyNet::Math::Interpolator::Interpolator ( ) [inline]
OpenSkyNet::Math::Interpolator::Interpolator ( TYPE  type_) [inline]
OpenSkyNet::Math::Interpolator::Interpolator ( ) [inline]
OpenSkyNet::Math::Interpolator::Interpolator ( TYPE  type_) [inline]

Member Function Documentation

OpenSkyNet::Math::Interpolator::operator float ( ) [inline]
OpenSkyNet::Math::Interpolator::operator float ( ) [inline]
bool Interpolator::operator+ ( float  amount_)
bool OpenSkyNet::Math::Interpolator::operator+ ( float  amount_)

Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines