summaryrefslogtreecommitdiff
path: root/Source/Asura.Engine/math/rect.hpp
blob: f635007d0c56eab3f96b8cc2f9d7d5a1e968bfa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef __ASURA_ENGINE_RECT_H__
#define __ASURA_ENGINE_RECT_H__

namespace AsuraEngine
{
	namespace Math
	{
		
		template<typename T> 
		struct Rect
		{
		public:
			Rect();
			~Rect(T x, T y, T w, T h);

			template <typename U>
			explicit Rect(const Rect<U>& rect);

			T x, y, w, h;
		};
		
#include "Rect.inl"

		// Define the most common types
		typedef Rect<int>          Recti;
		typedef Rect<unsigned int> Rectu;
		typedef Rect<float>        Rectf;

	}
}

#endif