mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2025-06-19 03:06:37 +02:00
srng: impl floating point numbers and make std dist compat
This commit is contained in:
@ -9,6 +9,11 @@ struct ScalarRange2 {
|
||||
|
||||
ScalarRange2(void) = default;
|
||||
|
||||
ScalarRange2(const T& both) noexcept {
|
||||
v_min = both;
|
||||
v_max = both;
|
||||
}
|
||||
|
||||
ScalarRange2(const T& min, const T& max) noexcept {
|
||||
if (min <= max) {
|
||||
v_min = min;
|
||||
|
Reference in New Issue
Block a user