Box

Description

When box need to be rotates, one should use Rectangle2D, which is float-based and capable of storage information about angle.

struct Box
{
	int x;
	int y;
	int width;
	int height;
};

Structure fields and default values (if defined) are described below:

struct Box
{
	Integer	X;
	Integer	Y;
	int		Width;
	int		Height;


	Integer X( void ) const		{ return X;			};
	Integer Y( void ) const		{ return Y;			};
	int Width( void ) const		{ return Width;		};
	int Height( void ) const	{ return Height;	};

	bool operator == ( const avl::Box& rhs ) const
	{
		return X == rhs.X && 
			Y == rhs.Y && 
			Width == rhs.Width && 
			Height == rhs.Height;
	}

	bool operator != ( const avl::Box& rhs ) const
	{
		return !(operator==(rhs));
	}

};