| 
    NWengine 0.9
    
   | 
 
The Interpolator class represents a generic interpolator. More...
#include <Interpolation.h>
  
Public Member Functions | |
| Interpolator (float source, float target, float duration) | |
| Constructs an Interpolator object with the given source, target, and duration.   | |
| Interpolator ()=default | |
| Default constructor for the Interpolator class.  | |
| virtual float | Evaluate (float clock) | 
| Evaluates the interpolation at the given clock value.   | |
| int | Serialize (std::fstream *data, int offset) override | 
| Serializes the Interpolator object to a file stream.   | |
| int | Deserialize (std::fstream *data, int offset) override | 
| Deserializes the Interpolator object from a file stream.   | |
  Public Member Functions inherited from Serialized | |
| Serialized () | |
| Default constructor for Serialized class.  | |
Public Attributes | ||
| struct { | ||
| float source | ||
| float target | ||
| float currentValue | ||
| }; | ||
| float | duration = 0.0f | |
The Interpolator class represents a generic interpolator.
Constructs an Interpolator object with the given source, target, and duration.
| source | The source value of the interpolation. | 
| target | The target value of the interpolation. | 
| duration | The duration of the interpolation in seconds. | 
Deserializes the Interpolator object from a file stream.
| data | The file stream to deserialize from. | 
| offset | The offset in the file stream to start deserializing from. | 
Reimplemented from Serialized.
Evaluates the interpolation at the given clock value.
| clock | The clock value between 0 and 1. | 
Reimplemented in BezierInterpolator.
Serializes the Interpolator object to a file stream.
| data | The file stream to serialize to. | 
| offset | The offset in the file stream to start serializing from. | 
Reimplemented from Serialized.
| float Interpolator::currentValue | 
The current value of the interpolation.
| float Interpolator::duration = 0.0f | 
The duration of the interpolation in seconds.
| float Interpolator::source | 
The source value of the interpolation.
| float Interpolator::target | 
The target value of the interpolation.