Box3D

Description

Represents a box in 3 dimensions with sides parallel to axes.

struct Box3D
{		
	float x;
	float y;
	float z;
	float xLength;
	float yLength;
	float zLength;

	float X( void ) const;
	float Y( void ) const;
	float Z( void ) const;
	float XLength( void ) const;
	float YLength( void ) const;
	float ZLength( void ) const;

	bool operator == ( const avl::Box3D& rhs ) const;

	bool operator != ( const avl::Box3D& rhs ) const;
};

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

  • Real X
  • Real Y
  • Real Z
  • float XLength
  • float YLength
  • float ZLength
struct Box3D
{
	Real	X;
	Real	Y;
	Real	Z;
	float	XLength;
	float	YLength;
	float	ZLength;


	Real X() const			{ return X;			};
	Real Y() const			{ return Y;			};
	Real Z() const			{ return Z;			};
	float XLength() const	{ return XLength;	};
	float YLength() const	{ return YLength;	};
	float ZLength() const	{ return ZLength;	};

	bool operator == ( const avl::Box3D& rhs ) const
	{
		return X == rhs.X && 
			Y == rhs.Y && 
			Z == rhs.Z && 
			XLength == rhs.XLength && 
			YLength == rhs.YLength && 
			ZLength == rhs.ZLength;
	}

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

};