Remap function (fit function) in of?


I want to implement something like below

k = ofRandom(ofGetElapsedTimef());
remapped_k = remap ( k , 0 , 60, 0, 1);

It will remap k value from 0~60 to be 0~1?
And remapping the value with “linear”, “cubic” or “quadratic” option as well?

Thank you,

I think you are looking for ofMap.
and this post is talking about non linear mappings:

Also, check out ofxTween for non-linear maps (linear", “cubic” or "quadratic, etc), specifically the example-map.

Appreciate your useful comments!