Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
scaleLinear
to better handle wrap around cases
In particular, when there is a negative slope near wrap around values, we handle that case better. For example, using `uint32_t` for the input domain, and `uint8_t` for the output range, with the full spectrum of `uint8_t` values used for the output, there can be wrap around to the promoted type of `uint32_t`, which caused problems with the previous calculation.
- Loading branch information