src/scene.h
branchpyrit
changeset 9 3239f749e394
parent 8 e6567b740c5e
child 12 f4fcabf05785
--- a/src/scene.h	Thu Nov 22 18:10:10 2007 +0100
+++ b/src/scene.h	Thu Nov 22 21:46:09 2007 +0100
@@ -23,6 +23,9 @@
 	Vector3 L;
 	Vector3 R;
 	BBox(): L(), R() {};
+	float w() { return R.x-L.x; };
+	float h() { return R.y-L.y; };
+	float d() { return R.z-L.z; };
 };
 
 class Ray