Ray Tracer  2020
Sphere.h
Go to the documentation of this file.
1 #pragma once
2 
3 #ifndef SPHERE_H_INCLUDED
4 #define SPHERE_H_INCLUDED
5 
6 #include "Object.h"
7 
23 class Sphere : public Object {
24 
25 public:
26 
32  Sphere();
33 
37  Sphere(const Sphere& sphere);
38 
40  ~Sphere();
41 
47  Sphere& operator=(const Sphere& sphere);
48 
65  std::vector<RayIntersection> intersect(const Ray& ray) const;
66 
67 };
68 
69 #endif // SPHERE_H_INCLUDED
Object class header file.
Abstract base class for Objects.
Definition: Object.h:35
Rays as a starting Point and Direction.
Definition: Ray.h:20
Class for Sphere objects.
Definition: Sphere.h:23
std::vector< RayIntersection > intersect(const Ray &ray) const
Sphere-Ray intersection computation.
Definition: Sphere.cpp:24
~Sphere()
Sphere destructor.
Definition: Sphere.cpp:13
Sphere & operator=(const Sphere &sphere)
Sphere assignment operator.
Definition: Sphere.cpp:17
Sphere()
Sphere default constructor.
Definition: Sphere.cpp:5