summaryrefslogtreecommitdiff
path: root/Source/modules/asura-base/Math/Rect.inc
blob: efafbf9320a8ea57f641e7d12c76efc9ee2dfd2d (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
template <typename T>
inline Rect<T>::Rect() 
	: x(0)
	, y(0)
	, w(0)
	, h(0)
{

}

template <typename T>
inline Rect<T>::Rect(T X, T Y, T W, T H)
	: x(X)
	, y(Y)
	, w(W)
	, h(H)
{

}

template <typename T> 
void Rect<T>::Set(T X, T Y, T W, T H)
{
	x = X;
	y = Y;
	w = W;
	h = H;
}