PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...
#include "directbase.h"
Go to the source code of this file.
Functions | |
template<class NumericType > | |
void | lerp_value (NumericType ¤t_value, double d, const NumericType &starting_value, const NumericType &ending_value) |
Applies the linear lerp computation for a single parameter. More... | |
template<class NumericType > | |
void | lerp_value_from_prev (NumericType ¤t_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. More... | |
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
All rights reserved.
All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."
Definition in file lerp_helpers.h.
|
inline |
Applies the linear lerp computation for a single parameter.
Definition at line 27 of file lerp_helpers.h.
Referenced by CLerpAnimEffectInterval::priv_step().
|
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 43 of file lerp_helpers.h.