mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 22:05:38 +00:00
Common/Rectangle: Make it work with float types
This commit is contained in:
parent
2b4568df6a
commit
84b0522abc
|
@ -10,11 +10,8 @@ namespace Common {
|
|||
template<typename T>
|
||||
struct Rectangle
|
||||
{
|
||||
enum : T
|
||||
{
|
||||
InvalidMinCoord = std::numeric_limits<T>::max(),
|
||||
InvalidMaxCoord = std::numeric_limits<T>::min()
|
||||
};
|
||||
static constexpr T InvalidMinCoord = std::numeric_limits<T>::max();
|
||||
static constexpr T InvalidMaxCoord = std::numeric_limits<T>::min();
|
||||
|
||||
/// Default constructor - initializes to an invalid coordinate range suitable for including points.
|
||||
constexpr Rectangle() : left(InvalidMinCoord), top(InvalidMinCoord), right(InvalidMaxCoord), bottom(InvalidMaxCoord)
|
||||
|
|
Loading…
Reference in a new issue