Location

Description

Location is used to identify pixels in image, elements in matrices etc. If float-based equivalent is needed, one should use Point2D.

struct Location
{
	int x;
	int y;

	Location();
	Location( int x, int y );

	int X( void ) const;
	int Y( void ) const;

	bool operator == (const Location& rhs) const
	bool operator != (const Location& rhs) const;
};

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

struct Location
{
	Integer	X;
	Integer	Y;


	Integer X( void ) const	{ return X;	};
	Integer Y( void ) const	{ return Y;	};

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

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

};