Ray Tracer  2020
Cylinder.h
Go to the documentation of this file.
1 #pragma once
2 
3 #ifndef CYLINDER_H_INCLUDED
4 #define CYLINDER_H_INCLUDED
5 
6 #include "Object.h"
7 
28 class Cylinder : public Object {
29 
30 public:
31 
38  Cylinder();
39 
43  Cylinder(const Cylinder& cylinder);
44 
46  ~Cylinder();
47 
53  Cylinder& operator=(const Cylinder& cylinder);
54 
81  std::vector<RayIntersection> intersect(const Ray& ray) const;
82 
83 private:
84 
85 };
86 
87 #endif // CYLINDER_H_INCLUDED
Object class header file.
Class for Cylinder objects.
Definition: Cylinder.h:28
Cylinder()
Cylinder default constructor.
Definition: Cylinder.cpp:5
~Cylinder()
Cylinder destructor.
Definition: Cylinder.cpp:13
std::vector< RayIntersection > intersect(const Ray &ray) const
Cylinder-Ray intersection computation.
Definition: Cylinder.cpp:24
Cylinder & operator=(const Cylinder &cylinder)
Cylinder assignment operator.
Definition: Cylinder.cpp:17
Abstract base class for Objects.
Definition: Object.h:35
Rays as a starting Point and Direction.
Definition: Ray.h:20