Ray Tracer  2020
Plane.h
Go to the documentation of this file.
1 #pragma once
2 
3 #ifndef PLANE_H_INCLUDED
4 #define PLANE_H_INCLUDED
5 
6 #include "Object.h"
7 
27 class Plane : public Object {
28 
29 public:
30 
36  Plane();
37 
41  Plane(const Plane& plane);
42 
44  ~Plane();
45 
51  Plane& operator=(const Plane& plane);
52 
64  std::vector<RayIntersection> intersect(const Ray& ray) const;
65 
66 };
67 
68 #endif // PLANE_H_INCLUDED
Object class header file.
Abstract base class for Objects.
Definition: Object.h:35
Class for Plane objects.
Definition: Plane.h:27
~Plane()
Plane destructor.
Definition: Plane.cpp:13
std::vector< RayIntersection > intersect(const Ray &ray) const
Plane-Ray intersection computation.
Definition: Plane.cpp:24
Plane & operator=(const Plane &plane)
Plane assignment operator.
Definition: Plane.cpp:17
Plane()
Plane default constructor.
Definition: Plane.cpp:5
Rays as a starting Point and Direction.
Definition: Ray.h:20