Ray Tracer  2020
Cube.h
Go to the documentation of this file.
1 #pragma once
2 
3 #ifndef CUBE_H_INCLUDED
4 #define CUBE_H_INCLUDED
5 
6 #include "Object.h"
7 
28 class Cube : public Object {
29 
30 public:
31 
38  Cube();
39 
43  Cube(const Cube& cube);
44 
46  ~Cube();
47 
53  Cube& operator=(const Cube& cube);
54 
66  std::vector<RayIntersection> intersect(const Ray& ray) const;
67 };
68 
69 #endif // CUBE_H_INCLUDED
Object class header file.
Class for Cube objects.
Definition: Cube.h:28
Cube()
Cube default constructor.
Definition: Cube.cpp:6
Cube & operator=(const Cube &cube)
Cube assignment operator.
Definition: Cube.cpp:18
std::vector< RayIntersection > intersect(const Ray &ray) const
Cube-Ray intersection computation.
Definition: Cube.cpp:25
~Cube()
Cube destructor.
Definition: Cube.cpp:14
Abstract base class for Objects.
Definition: Object.h:35
Rays as a starting Point and Direction.
Definition: Ray.h:20