Common/Rectangle: Make it work with float types
This commit is contained in:
1 parent
2b4568df6a
commit
84b0522abc
1 file changed
+2
-5
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user