![]() |
The Stroop Test Game
Ian Parberry's "Introduction to Game Physics"
|
Code for the vector field CVectorField. More...
#include "VectorField.h"
#include "GameDefines.h"
#include "Renderer.h"
#include "ComponentIncludes.h"
Functions | |
template<typename t > | |
t | lerp (const t &a, const t &b, float f) |
Code for the vector field CVectorField.
t lerp | ( | const t & | a, |
const t & | b, | ||
float | f | ||
) |
Templated helper function that linearly interpolates between two numbers. Type t can be anything that supports multiplication, addition, and subtraction.
a | First number. |
b | Second number. |
f | Fraction, should be between 0 and 1. |