How do you mean? I am using the sin() function, but I need to go from a set of variables with a low/high of 0-18000 and output another set from 180-255. What I wrote allows me to map the input variables to radians and plug that into the sin() function. Then the range and offset allow me to output to my values to the range I need, 180-255.
This is my first time using sin(), how else would you recommend using it?