///////////////////////////////////////////////////////////////////////////////
//  SRect.h

#pragma once

namespace math3d {

struct S2DI;

struct SRect {
	int		x, y, width, height;

public:
	SRect(void);
	SRect(int nX_, int nY_, int nWidth_, int nHeight_);

	bool	operator!=(const SRect& Obj) const;

	void	Set(int nX_, int nY_, int nWidth_, int nHeight_);

	S2DI	GetPos() const;
	S2DI	GetSize() const;

	S2DI	Limit(const S2DI& Pos) const;
};

}

