All pastes #514710 Raw Edit

Anonymous

public cpp v1 · immutable
#514710 ·published 2007-05-27 21:34 UTC
rendered paste body
struct AABB{	Point mCorners[2];	AABB(const float width, const float height, const float depth);};class Node{public:	void addChild(Node &child);	void drawRecursive();	virtual void draw() = 0;	virtual const AABB& aabb() const = 0;	virtual void collidedWithOther(Node &node) = 0;protected:	virtual ~Node() {}	std::vector < Node* > mChildren;};class Box: public Node{public:	void draw();	const AABB& aabb() const;};