Added a check to use either doubles or floats depending on easing.h