Swiftgram/example/vectortest.cpp
subhransu mohanty 4dff9ab5a5 lottie/vector : add a example to test the vector module.
Change-Id: I511b2b520b51ec8b9bf278b67a5ca94784af4c76
2018-09-12 04:17:10 +00:00

14 lines
240 B
C++

#include<iostream>
#include "vinterpolator.h"
int main()
{
VInterpolator ip({0.667, 1}, {0.333 , 0});
for (float i = 0.0 ; i < 1.0 ; i+=0.05) {
std::cout<<ip.value(i)<<"\t";
}
std::cout<<std::endl;
return 0;
}