|
Source of Library/Damper.cpp:
Here is a link for right-clicking and downloading the file: Library/Damper.cpp (939 Byte),
and below is its content to view online.
/*
Damper.cpp
A C++ implementation of a Damper.
Author:
Herbert Stocker
Underlying Paper:
"Linear Filters - Animating Objects in a
Flexible and Pleasing Way" by Herbert Stocker
HomePage:
http://www.hersto.net/Followers
(various resources there)
License:
You may use this file in any project and
modify it as long as you keep this comment
block unchanged.
Accompanying Files:
Damper.h
Damper_impl.h
Required Files:
Follower_Trait.h
Follower_Trait.cpp
Follower_Trait_impl.h
TimeDependent.h
TimeDependent.cpp
Documentation:
See http://www.hersto.net/Followers
*/
#include "Damper.h"
#include <math.h>
double Exp(double X)
{
// hope the compiler can sees that the Exp(.) function
// can be inlined. IMHO(hst) modern compilers do.
return exp(X);
}
|
__.-.__ end of document
|