Tactics: Western Philosophers Vs. Musicians  0.12
A turn-based tactical game combining rules and gameplay elements inspired by Final Fantasy Tactics and the Mayfair Exponential Game System. Unlike most games of this type, motion is in full, grid-less 3D.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | List of all members
OpenSkyNet::Math::Interpolator Class Reference

#include <MInterpolator.h>

Public Types

enum  TYPE { BOUNCE_F, BOUNCE_B, LOOP, END }
 

Public Member Functions

 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 

Constructor & Destructor Documentation

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

Member Function Documentation

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

Member Data Documentation

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

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