-
Notifications
You must be signed in to change notification settings - Fork 11
Custom Utility Functions
[ ] check_button_state()
- Updates the button_pressed
value to be true or false accordingly.
[ int ] remap( double variable, double old_minimum, double old_maximum, double new_minimum, double new_maximum )
- Remaps a variable on a logarithmic scale.
double variable = variable to remap
double old_minimum = previous lower bound of the variable to remap
double old_maximum = previous upper bound of the variable to remap
double new_minimum = new lower bound of the variable being remap
double new_maximum = new upper bound of the variable being remap
[ int ] largest( double arr[], int n )
- Finds the largest value in a given array with a given size.
double arr[] = array containing the largest value to find
int n = the size of the array to check