MathUtil: Default initialize Rectangle class data members
Puts Rectangles into a valid state upon creation
This commit is contained in:
parent
dddc834c14
commit
09641ec313
|
@ -117,10 +117,10 @@ double ApproximateReciprocal(double val);
|
||||||
template<class T>
|
template<class T>
|
||||||
struct Rectangle
|
struct Rectangle
|
||||||
{
|
{
|
||||||
T left;
|
T left{};
|
||||||
T top;
|
T top{};
|
||||||
T right;
|
T right{};
|
||||||
T bottom;
|
T bottom{};
|
||||||
|
|
||||||
Rectangle()
|
Rectangle()
|
||||||
{ }
|
{ }
|
||||||
|
|
Loading…
Reference in New Issue