mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +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>
|
template<typename T>
|
||||||
struct Rectangle
|
struct Rectangle
|
||||||
{
|
{
|
||||||
enum : T
|
static constexpr T InvalidMinCoord = std::numeric_limits<T>::max();
|
||||||
{
|
static constexpr T InvalidMaxCoord = std::numeric_limits<T>::min();
|
||||||
InvalidMinCoord = std::numeric_limits<T>::max(),
|
|
||||||
InvalidMaxCoord = std::numeric_limits<T>::min()
|
|
||||||
};
|
|
||||||
|
|
||||||
/// Default constructor - initializes to an invalid coordinate range suitable for including points.
|
/// Default constructor - initializes to an invalid coordinate range suitable for including points.
|
||||||
constexpr Rectangle() : left(InvalidMinCoord), top(InvalidMinCoord), right(InvalidMaxCoord), bottom(InvalidMaxCoord)
|
constexpr Rectangle() : left(InvalidMinCoord), top(InvalidMinCoord), right(InvalidMaxCoord), bottom(InvalidMaxCoord)
|
||||||
|
|
Loading…
Reference in a new issue