Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

direct/src/interval/lerp_helpers.h File Reference

#include "directbase.h"

Go to the source code of this file.

Functions

template<class NumericType> void lerp_value (NumericType &current_value, double d, const NumericType &starting_value, const NumericType &ending_value)
 Applies the linear lerp computation for a single parameter.

template<class NumericType> void lerp_value_from_prev (NumericType &current_value, double d, double prev_d, const NumericType &prev_value, const NumericType &ending_value)
 Applies the linear lerp computation for a single parameter, when the starting value is implicit.


Detailed Description

Definition in file lerp_helpers.h.


Function Documentation

template<class NumericType>
void lerp_value NumericType &  current_value,
double  d,
const NumericType &  starting_value,
const NumericType &  ending_value
[inline]
 

Applies the linear lerp computation for a single parameter.

Definition at line 49 of file lerp_helpers.h.

References INLINE.

template<class NumericType>
void lerp_value_from_prev NumericType &  current_value,
double  d,
double  prev_d,
const NumericType &  prev_value,
const NumericType &  ending_value
[inline]
 

Applies the linear lerp computation for a single parameter, when the starting value is implicit.

This computes the new value based on assuming the prev_value represents the value computed at delta prev_d.

Definition at line 75 of file lerp_helpers.h.


Generated on Fri May 2 01:38:07 2003 for Direct by doxygen1.3