How Animated blends and compares values of a type.
More...
#include <gin_animated.h>
|
| static T | blend (const T &a, const T &b, float p) |
| static bool | same (const T &a, const T &b) |
template<typename T>
struct Interpolator< T >
How Animated blends and compares values of a type.
The primary template works for any type with +, - and * float, like double or juce::Point<float>; specialise it for other types:
template <>
{
static MyType
blend (
const MyType& a,
const MyType& b,
float p);
static bool same (
const MyType& a,
const MyType& b);
};
How Animated blends and compares values of a type.
Definition gin_animated.h:217
static T blend(const T &a, const T &b, float p)
Definition gin_animated.h:218
static bool same(const T &a, const T &b)
Definition gin_animated.h:219
◆ blend()
template<typename T>
| T Interpolator< T >::blend |
( |
const T & | a, |
|
|
const T & | b, |
|
|
float | p ) |
|
static |
◆ same()
The documentation for this struct was generated from the following file: