VOX
A little voxel engine
Loading...
Searching...
No Matches
math_utils.hpp
Go to the documentation of this file.
1#pragma once
2
3template <typename T>
4T mapRange(T input, T input_start, T input_end, T output_start, T output_end)
5{
6 return (output_start + ((output_end - output_start) / (input_end - input_start)) * (input - input_start));
7}
T mapRange(T input, T input_start, T input_end, T output_start, T output_end)
Definition: math_utils.hpp:4