Utils: CosineInterpolation
This commit is contained in:
@@ -8,6 +8,8 @@
|
|||||||
|
|
||||||
#include "Util.h"
|
#include "Util.h"
|
||||||
|
|
||||||
|
float CosineInterpolation(float f) { return (1.0f - cos(f * Pi)) * 0.5f; }
|
||||||
|
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
// SolveQuadratic
|
// SolveQuadratic
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -6,6 +6,10 @@
|
|||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#define Pi (3.1415925f)
|
||||||
|
|
||||||
|
float CosineInterpolation(float f);
|
||||||
|
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
// SolveQuadratic
|
// SolveQuadratic
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user