src/scene.h
branchpyrit
changeset 9 3239f749e394
parent 8 e6567b740c5e
child 12 f4fcabf05785
equal deleted inserted replaced
8:e6567b740c5e 9:3239f749e394
    21 {
    21 {
    22 public:
    22 public:
    23 	Vector3 L;
    23 	Vector3 L;
    24 	Vector3 R;
    24 	Vector3 R;
    25 	BBox(): L(), R() {};
    25 	BBox(): L(), R() {};
       
    26 	float w() { return R.x-L.x; };
       
    27 	float h() { return R.y-L.y; };
       
    28 	float d() { return R.z-L.z; };
    26 };
    29 };
    27 
    30 
    28 class Ray
    31 class Ray
    29 {
    32 {
    30 public:
    33 public: