Motivating example: in the HSV color model, the hue component is often thought of going from 0 to 360, or a mathematician might write 0 to 2π, but the saturation and value go from 0 to 100.
In the C++ world, each component's type includes its range - deliberately, it's a good feature.
And a Sample is a std::array so its components must have the same type.
It's likely that I'm going to have to replace this with std::tuple - which means I have to unroll every loop over each component. That isn't that bad but it's not trivial. For after release...
Motivating example: in the HSV color model, the hue component is often thought of going from 0 to 360, or a mathematician might write 0 to 2π, but the saturation and value go from 0 to 100.
In the C++ world, each component's type includes its range - deliberately, it's a good feature.
And a
Sample
is astd::array
so its components must have the same type.It's likely that I'm going to have to replace this with
std::tuple
- which means I have to unroll every loop over each component. That isn't that bad but it's not trivial. For after release...