MathUtil: Default initialize Rectangle class data members

Puts Rectangles into a valid state upon creation
This commit is contained in:
Lioncash 2015-10-20 20:11:25 -04:00
parent dddc834c14
commit 09641ec313
1 changed files with 4 additions and 4 deletions

View File

@ -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()
{ } { }