mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
21 lines
406 B
C++
21 lines
406 B
C++
#pragma once
|
|
|
|
#undef min
|
|
#undef max
|
|
|
|
namespace RBX
|
|
{
|
|
class NumberRange
|
|
{
|
|
public:
|
|
float min;
|
|
float max;
|
|
|
|
NumberRange(float a = 0) : min(a), max(a) {}
|
|
NumberRange(float a, float b);
|
|
bool operator==(const NumberRange& r) const { return min == r.min && max == r.max; }
|
|
bool operator!=(const NumberRange& r) const { return !operator==(r); }
|
|
};
|
|
|
|
}
|