work on raytracing
This commit is contained in:
18
geo/volume/BoundingVolume.h
Normal file
18
geo/volume/BoundingVolume.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef BOUNDINGVOLUME_H
|
||||
#define BOUNDINGVOLUME_H
|
||||
|
||||
#include "../Point3.h"
|
||||
|
||||
class BoundingVolume {
|
||||
|
||||
public:
|
||||
|
||||
/** get the volume's size (something like m^3) */
|
||||
virtual float getVolumeSize() const = 0;
|
||||
|
||||
/** does the volume contain the given point? */
|
||||
virtual bool contains(const Point3 p) const = 0;
|
||||
|
||||
};
|
||||
|
||||
#endif // BOUNDINGVOLUME_H
|
||||
Reference in New Issue
Block a user