-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsphere.hpp
More file actions
43 lines (27 loc) · 941 Bytes
/
sphere.hpp
File metadata and controls
43 lines (27 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// Created by Florent on 10/09/2018.
//
#ifndef TP0_SPHERE_HPP
#define TP0_SPHERE_HPP
#include "objet.h"
/**
* \class Sphere
* This class is the representation of a sphere, it's an object by definition too.
*/
class Sphere : public Objet {
private:
glm::vec3 center;
int radius;
public:
Sphere() = default;
~Sphere() override;
explicit Sphere(float, float, float, int);
explicit Sphere(float, float, float, int, float, float, float);
explicit Sphere(float, float, float, int, Material*);
explicit Sphere(Material* material, const glm::vec3& center, int radius);
explicit Sphere(Material* material, glm::vec3&& center, int radius);
explicit Sphere(glm::vec3&& color, glm::vec3&& center, int radius);
explicit Sphere(const glm::vec3& color, const glm::vec3& center, int radius);
bool calculIntersection(const Rayon& rayon, const Scene&, std::vector<Intersection>& I, int) override;
};
#endif //TP0_SPHERE_HPP